]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move log message to avoid logging null
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 May 2013 19:34:39 +0000 (14:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 May 2013 19:35:19 +0000 (14:35 -0500)
src/switch_core_sqldb.c

index a8fe4107c703ddd15734fbcdb20ac9a825c8e770..9f4609f63c912cdb454721ef3aa04449808005e3 100644 (file)
@@ -501,6 +501,8 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
                        goto end;
                }
 
+               new_dbh = create_handle(type);
+
                switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG10,
                                                  "Create Cached DB handle %s [%s] %s:%d\n", new_dbh->name, switch_cache_db_type_name(type), file, line);