Module: kamailio
Branch: master
Commit: d2ef3754a8081c92a932fb19492f1b6d7eee67eb
URL:
https://github.com/kamailio/kamailio/commit/d2ef3754a8081c92a932fb19492f1b6…
Author: Luis Azedo <luis.azedo(a)factorlusitano.com>
Committer: Luis Azedo <luis.azedo(a)factorlusitano.com>
Date: 2015-05-05T19:13:11+01:00
db_text : raw_query support
bug fix - uninitialised pointers
---
Modified: modules/db_text/dbt_raw_query.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d2ef3754a8081c92a932fb19492f1b6…
Patch:
https://github.com/kamailio/kamailio/commit/d2ef3754a8081c92a932fb19492f1b6…
---
diff --git a/modules/db_text/dbt_raw_query.c b/modules/db_text/dbt_raw_query.c
index 3e6ead0..ad13600 100644
--- a/modules/db_text/dbt_raw_query.c
+++ b/modules/db_text/dbt_raw_query.c
@@ -49,9 +49,9 @@ int dbt_raw_query_select(db1_con_t* _h, str* _s, db1_res_t** _r)
int ncols = 0;
int nc = 0;
db_key_t *result_cols = NULL;
- db_key_t* _k;
- db_op_t* _op;
- db_val_t* _v;
+ db_key_t* _k = NULL;
+ db_op_t* _op = NULL;
+ db_val_t* _v = NULL;
fields_end_ptr = strcasestr(_s->s, " from ");
if(fields_end_ptr == NULL)