diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 6c43f25d44..ba4b6d310d 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -4324,7 +4324,7 @@ SWITCH_STANDARD_API(uuid_loglevel) #define SQL_ESCAPE_SYNTAX "" 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);