This commit is contained in:
Anthony Minessale 2010-11-09 11:53:01 -06:00
parent 794db40e52
commit 7bd0a5a63d
1 changed files with 1 additions and 1 deletions

View File

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