]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix the fix
authorBrian West <brian@freeswitch.org>
Tue, 2 Sep 2008 14:56:55 +0000 (14:56 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 2 Sep 2008 14:56:55 +0000 (14:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9405 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index bc477b875131191cf9c471eb54da397204c4e95a..af1b79f7ded2a57d465f5257fb71d5071fdf5842 100644 (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);