From: Michael Jerris Date: Tue, 19 Dec 2006 18:54:06 +0000 (+0000) Subject: used potentially uninitialized variable. X-Git-Tag: v1.0-beta1~1522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2accfa888db4382257347c080f1409bb2204e54c;p=thirdparty%2Ffreeswitch.git used potentially uninitialized variable. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3727 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index d5c7f74a1d..9cba1aea55 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -5328,7 +5328,7 @@ static void pres_event_handler(switch_event_t *event) switch(event->event_id) { case SWITCH_EVENT_PRESENCE_PROBE: if (proto) { - switch_core_db_t *db; + switch_core_db_t *db = NULL; char *to = switch_event_get_header(event, "to"); char *user, *euser, *host, *p;