[Freeswitch-svn] [commit] r9404 - freeswitch/trunk/src/mod/applications/mod_limit
Freeswitch SVN
brian at freeswitch.org
Tue Sep 2 10:50:04 EDT 2008
Author: brian
Date: Tue Sep 2 10:50:03 2008
New Revision: 9404
Modified:
freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
Log:
fix MODAPP-134
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:50:03 2008
@@ -80,7 +80,9 @@
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);
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERR: [%s]\n[%s]\n", sql, switch_str_nil(err_str));
+ if ( err_str && strlen(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);
status = SWITCH_STATUS_FALSE;
}
More information about the Freeswitch-svn
mailing list