[sr-dev] git:master:b8e3aff1: cfgt: fix compile warning for len field comparison

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 16 08:21:38 CET 2015


Module: kamailio
Branch: master
Commit: b8e3aff1079e4a617aa273553a20d664d0c368c2
URL: https://github.com/kamailio/kamailio/commit/b8e3aff1079e4a617aa273553a20d664d0c368c2

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-12-16T08:20:55+01:00

cfgt: fix compile warning for len field comparison

---

Modified: modules/cfgt/cfgt_int.c

---

Diff:  https://github.com/kamailio/kamailio/commit/b8e3aff1079e4a617aa273553a20d664d0c368c2.diff
Patch: https://github.com/kamailio/kamailio/commit/b8e3aff1079e4a617aa273553a20d664d0c368c2.patch

---

diff --git a/modules/cfgt/cfgt_int.c b/modules/cfgt/cfgt_int.c
index f5e87db..5bd48ba 100644
--- a/modules/cfgt/cfgt_int.c
+++ b/modules/cfgt/cfgt_int.c
@@ -236,7 +236,7 @@ cfgt_node_p cfgt_create_node(struct sip_msg *msg)
 	{
 		node->msgid = msg->id;
 		LM_DBG("msgid:%d\n", node->msgid);
-		if(_cfgt_get_hdr(msg, &node->uuid)!=0 || &node->uuid.len==0)
+		if(_cfgt_get_hdr(msg, &node->uuid)!=0 || node->uuid.len==0)
 		{
 			LM_ERR("cannot get value of cfgtest uuid header!!\n");
 			goto error;




More information about the sr-dev mailing list