From c5ef9569d524ab49d538e85a905520b72e1d8dea Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 14 May 2015 12:03:28 +0200 Subject: [PATCH] presence: initialize variable to avoid compile warning --- modules/presence/subscribe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/presence/subscribe.c b/modules/presence/subscribe.c index 84f16e58b7d..12682439cac 100644 --- a/modules/presence/subscribe.c +++ b/modules/presence/subscribe.c @@ -842,7 +842,7 @@ int handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_domain) pres_ev_t* event= NULL; event_t* parsed_event= NULL; param_t* ev_param= NULL; - int found; + int found = 0; str reason= {0, 0}; struct sip_uri uri; int reply_code; @@ -1040,7 +1040,7 @@ int handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_domain) goto error; } LM_DBG("subscription status= %s - %s\n", get_status_str(subs.status), - found==0?"inserted":"found in watcher table"); + (found==0)?"inserted":"found in watcher table"); if (pres_notifier_processes > 0) {