From: Jeff Lenk Date: Fri, 27 Nov 2009 19:48:30 +0000 (+0000) Subject: code before decl X-Git-Tag: v1.0.6~1221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34c6f19bb42624d43f201a0e732a150130c3bd92;p=thirdparty%2Ffreeswitch.git code before decl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15699 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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);