From 34c6f19bb42624d43f201a0e732a150130c3bd92 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Fri, 27 Nov 2009 19:48:30 +0000 Subject: [PATCH] code before decl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15699 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_sqldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index b93fa9dbc3..aeb948d594 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -1331,6 +1331,7 @@ SWITCH_DECLARE(void) switch_cache_db_status(switch_stream_handle_t *stream) key = (char *) var; if ((dbh = (switch_cache_db_handle_t *) val)) { + char *needle = "pass=\""; time_t diff = 0; diff = now - dbh->last_used; @@ -1344,7 +1345,6 @@ SWITCH_DECLARE(void) switch_cache_db_status(switch_stream_handle_t *stream) /* sanitize password */ memset(cleankey_str, 0, sizeof(cleankey_str)); - char *needle = "pass=\""; pos1 = strstr(key, needle) + strlen(needle); pos2 = strstr(pos1, "\""); strncpy(cleankey_str, key, pos1-key);