From: Anthony Minessale Date: Fri, 7 Nov 2008 00:57:47 +0000 (+0000) Subject: silly compiler warning X-Git-Tag: v1.0.2~614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9891ac78370d581914d97094acfd1f8341f993;p=thirdparty%2Ffreeswitch.git silly compiler warning git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10279 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index f8fa2a3b78..22894c96ba 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -1376,7 +1376,8 @@ static int xml_callback(void *pArg, int argc, char **argv, char **columnNames) char exp_buf[128] = ""; switch_time_exp_t tm; switch_time_t etime = 0; - + char *expires = exp_buf; + if (argv[7]) { if ((etime = atol(argv[7]))) { switch_size_t retsize; @@ -1396,7 +1397,7 @@ static int xml_callback(void *pArg, int argc, char **argv, char **columnNames) switch_xml_set_attr_d(x_out, "lag", argv[6]); switch_xml_set_attr_d(x_out, "outbound-call-count", argv[10]); switch_xml_set_attr_d(x_out, "outbound-fail-count", argv[11]); - switch_xml_set_attr_d(x_out, "next-available", exp_buf); + switch_xml_set_attr_d(x_out, "next-available", expires); switch_xml_set_txt_d(x_out, argv[2]);