]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2833
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 9 Nov 2010 17:53:01 +0000 (11:53 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 9 Nov 2010 17:53:01 +0000 (11:53 -0600)
src/mod/applications/mod_commands/mod_commands.c

index 6c43f25d449a105e38a82916c371806b37ca4bf3..ba4b6d310dd035dceec9ea745536392263f7261e 100644 (file)
@@ -4324,7 +4324,7 @@ SWITCH_STANDARD_API(uuid_loglevel)
 #define SQL_ESCAPE_SYNTAX "<string>"
 SWITCH_STANDARD_API(sql_escape)
 {
-       if (zstr(cmd)) {
+       if (!cmd) {
                stream->write_function(stream, "-USAGE: %s\n", SQL_ESCAPE_SYNTAX);
        } else {
                stream->write_function(stream, "%q", cmd);