commit e5065d351963e624963265dbb431a438639dca63
parent 2eaece609481e369f920bfa42e3793e7a2dafda8
Author: sin <sin@2f30.org>
Date: Wed, 29 Oct 2014 16:49:38 +0000
No need to check for an empty ignore regex
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hysteria-highlight.c b/hysteria-highlight.c
@@ -107,7 +107,7 @@ main(void) {
}
/* ignore on match */
- if(regexignore[0] && (ret = regexec(&ignore, p, 1, &match, 0)) != REG_NOMATCH)
+ if((ret = regexec(&ignore, p, 1, &match, 0)) != REG_NOMATCH)
continue;
/* align nicknames */