]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1025879 Logically dead code
authorMichael Jerris <mike@jerris.com>
Fri, 16 May 2014 18:20:25 +0000 (18:20 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 16 May 2014 18:20:25 +0000 (18:20 +0000)
src/mod/applications/mod_cidlookup/mod_cidlookup.c

index 2fab96ccb257ec33cf26ba9c9e4aa04f8daf8c53..e0df48b792157c45dfc3779c0e90c355355cf1a1 100644 (file)
@@ -183,7 +183,7 @@ static switch_bool_t cidlookup_execute_sql_callback(char *sql, switch_core_db_ca
                        retval = SWITCH_TRUE;
                }
        } else {
-               *err = switch_core_sprintf(cbt->pool, "Unable to get database handle.  dsn: %s, dbh is %s\n", globals.odbc_dsn, dbh ? "not null" : "null");
+               *err = switch_core_sprintf(cbt->pool, "Unable to get database handle.  dsn: [%s]\n", switch_str_nil(globals.odbc_dsn));
        }
 
        switch_cache_db_release_db_handle(&dbh);