From c24329ed483ea3abd720af73411a2331acc947e4 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 14 May 2015 12:28:29 +0200 Subject: [PATCH] presence: initialize result to avoid freeing garbage in case of other errors --- modules/presence/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/presence/notify.c b/modules/presence/notify.c index 5cd61679e2e..6466fc1a2e1 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;