Module: kamailio
Branch: master
Commit: c24329ed483ea3abd720af73411a2331acc947e4
URL:
https://github.com/kamailio/kamailio/commit/c24329ed483ea3abd720af73411a233…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-05-14T12:28:29+02:00
presence: initialize result to avoid freeing garbage in case of other errors
---
Modified: modules/presence/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c24329ed483ea3abd720af73411a233…
Patch:
https://github.com/kamailio/kamailio/commit/c24329ed483ea3abd720af73411a233…
---
diff --git a/modules/presence/notify.c b/modules/presence/notify.c
index 5cd6167..6466fc1 100644
--- a/modules/presence/notify.c
+++ b/modules/presence/notify.c
@@ -2355,7 +2355,7 @@ static watcher_t *build_watchers_list(subs_t *sub)
db_key_t query_cols[3], result_cols[4];
db_val_t query_vals[3], *values;
db_row_t *rows;
- db1_res_t *result;
+ db1_res_t *result = NULL;
int n_query_cols = 0, n_result_cols = 0;
int wuser_col, wdomain_col, callid_col, status_col;
int i;