[sr-dev] git:master:bc5ac8ca: textopsx: fixed clang compile warning on comparing bool with char

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 21 19:10:51 CEST 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-21T19:10:01+02:00

textopsx: fixed clang compile warning on comparing bool with char

---

Modified: modules/textopsx/textopsx.c

---

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

---

diff --git a/modules/textopsx/textopsx.c b/modules/textopsx/textopsx.c
index 7e85013..6e21242 100644
--- a/modules/textopsx/textopsx.c
+++ b/modules/textopsx/textopsx.c
@@ -863,7 +863,7 @@ static int find_hf_value2_param(struct hname_data* hname, str* param_area, str*
 			while (i<param_area->len && is_space(param_area->s[i])) i++;
 		}
 		else {
-			while (i<param_area->len && !is_space(param_area->s[i]) && !param_area->s[i]!=',') i++;
+			while (i<param_area->len && !is_space(param_area->s[i]) && !(param_area->s[i]!=',')) i++;
 		}
 	}
 	lump_del->s = param_area->s + i;




More information about the sr-dev mailing list