summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/header.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/header.c b/src/header.c
index f3072ad..29e87f7 100644
--- a/src/header.c
+++ b/src/header.c
@@ -59,10 +59,8 @@
 
 static int strieq(const char *a, const char *b)
 {
-    while (*a)
-        if (tolower(*a) != tolower(*b))
-            return 0;
-    return 1;
+    while (*a && tolower(*a) == tolower(*b)) ++a, ++b;
+    return tolower(*a) == tolower(*b);
 }
 
 #define CHECK()                     \