Browse Source

pv: Don't log warnings when a string flag id is used

check_flag is logging a warning when the numeric id is also used via a string
alias. Don't call this function if the flag id is a string.
Alex Hermann 11 years ago
parent
commit
132d35e007
1 changed files with 1 additions and 2 deletions
  1. 1 2
      modules/pv/pv_core.c

+ 1 - 2
modules/pv/pv_core.c

@@ -2903,8 +2903,7 @@ int pv_parse_flag_param(pv_spec_p sp, str *in)
 			LM_ERR("flag not declared: [%.*s]\n", in->len, in->s);
 			return -1;
 		}
-	}
-	if (check_flag(n) < 0)
+	} else if (check_flag(n) < 0)
 	{
 		LM_ERR("bad flag value: [%.*s]\n", in->len, in->s);
 		return -1;