Module: kamailio
Branch: 4.2
Commit: c5015138170c9624055203cde4331091d96e928e
URL:
https://github.com/kamailio/kamailio/commit/c5015138170c9624055203cde433109…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-05-19T09:28:34+02:00
presence: initialize variable to avoid compile warning
(cherry picked from commit c5ef9569d524ab49d538e85a905520b72e1d8dea)
---
Modified: modules/presence/subscribe.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c5015138170c9624055203cde433109…
Patch:
https://github.com/kamailio/kamailio/commit/c5015138170c9624055203cde433109…
---
diff --git a/modules/presence/subscribe.c b/modules/presence/subscribe.c
index 334dc32..ce09e2f 100644
--- a/modules/presence/subscribe.c
+++ b/modules/presence/subscribe.c
@@ -806,7 +806,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;
@@ -992,7 +992,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)
{