fix remaining breakage from yesterday's changes
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 28 Oct 2005 17:22:34 +0000 (17:22 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 28 Oct 2005 17:22:34 +0000 (17:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6881 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index ef6b319..8859afc 100755 (executable)
@@ -1822,7 +1822,7 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
                                                int pos = 0;
                                                /* Retrieve login chan */
                                                for (;;) {
-                                                       if (args.extension) {
+                                                       if (!ast_strlen_zero(args.extension)) {
                                                                ast_copy_string(tmpchan, args.extension, sizeof(tmpchan));
                                                                res = 0;
                                                        } else