mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
don't print null in show commands return values.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4166 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b650424da0
commit
d8f906850b
@ -590,9 +590,9 @@ static int show_callback(void *pArg, int argc, char **argv, char **columnNames){
|
|||||||
for(x = 0; x < argc; x++) {
|
for(x = 0; x < argc; x++) {
|
||||||
if (holder->http) {
|
if (holder->http) {
|
||||||
holder->stream->write_function(holder->stream, "<td>");
|
holder->stream->write_function(holder->stream, "<td>");
|
||||||
holder->stream->write_function(holder->stream, "%s%s", argv[x], x == (argc - 1) ? "</td></tr>\n" : "</td><td>");
|
holder->stream->write_function(holder->stream, "%s%s", argv[x] ? argv[x] : "", x == (argc - 1) ? "</td></tr>\n" : "</td><td>");
|
||||||
} else {
|
} 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" : ",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user