]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
on second thought... revert all the other changes i've made in app options parsing...
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 27 Nov 2007 20:16:56 +0000 (20:16 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 27 Nov 2007 20:16:56 +0000 (20:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89709 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/app.c

index fd3de0d9bb145b35fcfe87ec9850abc2fe2467b7..d59f1d1cc567fd65f046fbf829e1b4d8bfd057d8 100644 (file)
@@ -1408,11 +1408,7 @@ int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags
                                break;
                        }
                } else if (argloc) {
-                       args[argloc - 1] = NULL;
-               }
-               if (argloc && ast_strlen_zero(args[argloc - 1])) {
-                       ast_log(LOG_WARNING, "Argument supplied for option '%c' was empty, option ignored.\n", curarg);
-                       continue;
+                       args[argloc - 1] = "";
                }
                ast_set_flag(flags, options[curarg].flag);
        }