Module: kamailio Branch: 4.2 Commit: 50d9cf9501f2ad3fbf9a282ea58055523b34d5cc URL: https://github.com/kamailio/kamailio/commit/50d9cf9501f2ad3fbf9a282ea5805552...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-05-19T09:28:23+02:00
presence: initialize result to avoid freeing garbage in case of other errors
(cherry picked from commit c24329ed483ea3abd720af73411a2331acc947e4)
---
Modified: modules/presence/notify.c
---
Diff: https://github.com/kamailio/kamailio/commit/50d9cf9501f2ad3fbf9a282ea5805552... Patch: https://github.com/kamailio/kamailio/commit/50d9cf9501f2ad3fbf9a282ea5805552...
---
diff --git a/modules/presence/notify.c b/modules/presence/notify.c index acf72db..bc4c442 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;