Module: sip-router
Branch: master
Commit: b93c46c681c17d090f6fda71d91e057ac8e919be
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b93c46c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Apr 4 11:11:49 2012 +0200
fixed some compile warnings
- reported by Juha Heinanen
---
lib/srdb1/db_query.c | 2 +-
modules_k/textops/textops.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/srdb1/db_query.c b/lib/srdb1/db_query.c
index 99079dc..004d10c 100644
--- a/lib/srdb1/db_query.c
+++ b/lib/srdb1/db_query.c
@@ -47,7 +47,7 @@ static inline int db_do_submit_query(const db1_con_t* _h, const str
*_query,
int (*submit_query)(const db1_con_t*, const str*))
{
int ret;
- unsigned int ms;
+ unsigned int ms = 0;
if(unlikely(cfg_get(core, core_cfg, latency_limit_action)>0))
ms = TICKS_TO_MS(get_ticks_raw());
diff --git a/modules_k/textops/textops.c b/modules_k/textops/textops.c
index 4628a3c..86e47a8 100644
--- a/modules_k/textops/textops.c
+++ b/modules_k/textops/textops.c
@@ -2158,7 +2158,7 @@ int fixup_free_regexp_none(void** param, int param_no)
static int search_hf_f(struct sip_msg* msg, char* str_hf, char* re, char *flags)
{
hdr_field_t *hf;
- hdr_field_t *hfl;
+ hdr_field_t *hfl = NULL;
str body;
gparam_t *gp;
regmatch_t pmatch;
@@ -2239,7 +2239,7 @@ static int subst_hf_f(struct sip_msg *msg, char *str_hf, char
*subst, char *flag
int nmatches;
str body;
hdr_field_t *hf;
- hdr_field_t *hfl;
+ hdr_field_t *hfl = NULL;
gparam_t *gp;
char c;
int ret;