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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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;


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

Reply via email to