From a67389ad5c3efb246da584cecdc47fcabf1770f9 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 May 2014 18:20:25 +0000 Subject: [PATCH] CID:1025879 Logically dead code --- src/mod/applications/mod_cidlookup/mod_cidlookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_cidlookup/mod_cidlookup.c b/src/mod/applications/mod_cidlookup/mod_cidlookup.c index 2fab96ccb2..e0df48b792 100644 --- a/src/mod/applications/mod_cidlookup/mod_cidlookup.c +++ b/src/mod/applications/mod_cidlookup/mod_cidlookup.c @@ -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);