fix the fix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9405 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-09-02 14:56:55 +00:00
parent 8045d1f0a8
commit bc13592e0e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static switch_status_t limit_execute_sql(char *sql, switch_mutex_t *mutex)
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);