[Freeswitch-svn] [commit] r9405 - freeswitch/trunk/src/mod/applications/mod_limit
Freeswitch SVN
brian at freeswitch.org
Tue Sep 2 10:56:55 EDT 2008
Author: brian
Date: Tue Sep 2 10:56:55 2008
New Revision: 9405
Modified:
freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
Log:
fix the fix
Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c Tue Sep 2 10:56:55 2008
@@ -80,7 +80,7 @@
if (switch_odbc_handle_exec(globals.master_odbc, sql, &stmt) != SWITCH_ODBC_SUCCESS) {
char *err_str;
err_str = switch_odbc_handle_get_error(globals.master_odbc, stmt);
- if ( err_str && strlen(err_str) ) {
+ if (!switch_strlen_zero(err_str)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERR: [%s]\n[%s]\n", sql, switch_str_nil(err_str));
}
switch_safe_free(err_str);
More information about the Freeswitch-svn
mailing list