about summary refs log tree commit diff
path: root/libtokencap/libtokencap.so.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r--libtokencap/libtokencap.so.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c
index b6ef05f3..1bffd2fa 100644
--- a/libtokencap/libtokencap.so.c
+++ b/libtokencap/libtokencap.so.c
@@ -380,8 +380,8 @@ int strncasecmp(const char* str1, const char* str2, size_t len) {
 
     const unsigned char c1 = tolower(*str1), c2 = tolower(*str2);
 
-    if (!c1) return 0;
     if (c1 != c2) return (c1 > c2) ? 1 : -1;
+    if (!c1) return 0;
     str1++;
     str2++;