Module: sip-router
Branch: master
Commit: 072d61918c10006779123b00ab597c1c09334e1c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=072d619…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Sep 5 16:06:00 2014 +0200
corex: fixed for loop in previous commit
---
modules/corex/corex_mod.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/corex/corex_mod.c b/modules/corex/corex_mod.c
index f30163a..3d28c0e 100644
--- a/modules/corex/corex_mod.c
+++ b/modules/corex/corex_mod.c
@@ -232,8 +232,7 @@ static msg_iflag_name_t _msg_iflag_list[] = {
static int msg_lookup_flag(str *fname)
{
int i;
- for(i=0; i++; ) {
- if(_msg_iflag_list[i].name.len <= 0) break;
+ for(i=0; _msg_iflag_list[i].name.len>0; i++) {
if(fname->len==_msg_iflag_list[i].name.len
&& strncasecmp(_msg_iflag_list[i].name.s, fname->s,
fname->len)==0) {