]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
silence warning (thanks stkn)
authorMichael Jerris <mike@jerris.com>
Thu, 29 Nov 2007 18:16:48 +0000 (18:16 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 29 Nov 2007 18:16:48 +0000 (18:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6436 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index 29aec0b305cd39f1bb55aad522e61d5db12ba1ba..de9ef72070591458f55b9c8e74d8cee9db583f1b 100644 (file)
@@ -2385,7 +2385,7 @@ static int web_callback(void *pArg, int argc, char **argv, char **columnNames)
         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 @@ static int rss_callback(void *pArg, int argc, char **argv, char **columnNames)
 
     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++;