[Freeswitch-trunk] [commit] r6436 - freeswitch/trunk/src/mod/applications/mod_voicemail
Freeswitch SVN
mikej at freeswitch.org
Thu Nov 29 13:16:49 EST 2007
Author: mikej
Date: Thu Nov 29 13:16:48 2007
New Revision: 6436
Modified:
freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
Log:
silence warning (thanks stkn)
Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Thu Nov 29 13:16:48 2007
@@ -2385,7 +2385,7 @@
switch_strftime(read_date, &retsize, sizeof(read_date), fmt, &tm);
}
- snprintf(heard, sizeof(heard), switch_strlen_zero(read_date) ? "never" : read_date);
+ snprintf(heard, sizeof(heard), *read_date == '\0' ? "never" : read_date);
get = switch_mprintf("http://%s:%s%s/get/%s", holder->host, holder->port, holder->uri, fname);
del = switch_mprintf("http://%s:%s%s/del/%s", holder->host, holder->port, holder->uri, fname);
@@ -2483,7 +2483,7 @@
x_tmp = switch_xml_add_child_d(holder->x_item, "description", 0);
- snprintf(heard, sizeof(heard), switch_strlen_zero(read_date) ? "never" : read_date);
+ snprintf(heard, sizeof(heard), *read_date == '\0' ? "never" : read_date);
if ((fname = strrchr(argv[8], '/'))) {
fname++;
More information about the Freeswitch-trunk
mailing list