avoid potentially passing null lang to strncasecmp in getUrlFilterNum

This commit is contained in:
Brian Rasmusson
2016-09-28 20:31:13 +02:00
parent 93e8d20284
commit be0682c59c

@ -3118,6 +3118,7 @@ checkNextRule:
// if we had lang==en,es,...
if ( sign == SIGN_EQ &&
blen == langLen &&
lang &&
strncasecmp(start,lang,langLen)==0 )
// if we matched any, that's great
goto matched2;
@ -3126,6 +3127,7 @@ checkNextRule:
// particular rule!!!
if ( sign == SIGN_NE &&
blen == langLen &&
lang &&
strncasecmp(start,lang,langLen)==0 )
// we do not match this rule if we matched
// and of the langs in the != list