diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 6d5c58c130..cc9c26da1e 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -590,9 +590,9 @@ static int show_callback(void *pArg, int argc, char **argv, char **columnNames){ for(x = 0; x < argc; x++) { if (holder->http) { holder->stream->write_function(holder->stream, ""); - holder->stream->write_function(holder->stream, "%s%s", argv[x], x == (argc - 1) ? "\n" : ""); + holder->stream->write_function(holder->stream, "%s%s", argv[x] ? argv[x] : "", x == (argc - 1) ? "\n" : ""); } else { - holder->stream->write_function(holder->stream, "%s%s", argv[x], x == (argc - 1) ? "\n" : ","); + holder->stream->write_function(holder->stream, "%s%s", argv[x] ? argv[x] : "", x == (argc - 1) ? "\n" : ","); } }