Module: sip-router
Branch: master
Commit: 0332acbc4cf2339f3b6b068f460d00e92221a8ef
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0332acbc4cf2339f3b6b068f460d00e92221a8ef

Author: Henning Westerholt <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date:   Thu May  2 21:36:17 2013 +0200

memcache: fix "maybe used uninitialized" warning from gcc

---

 modules/memcached/mcd_var.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/memcached/mcd_var.c b/modules/memcached/mcd_var.c
index 286eb5d..8efe80e 100644
--- a/modules/memcached/mcd_var.c
+++ b/modules/memcached/mcd_var.c
@@ -42,6 +42,8 @@
 static inline int pv_mcd_key_expiry_split_str(str *data, str *key, unsigned 
int *exp) {
        char *p;
        str str_exp;
+       str_exp.s = NULL;
+       str_exp.len = 0;
        
        if (data == NULL || data->s == NULL || data->len <= 0) {
                LM_ERR("invalid parameters\n");


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to