aboutsummaryrefslogtreecommitdiffstats
path: root/include/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utility.h')
-rw-r--r--include/utility.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/utility.h b/include/utility.h
index b2e61f1..c910eb2 100644
--- a/include/utility.h
+++ b/include/utility.h
@@ -67,7 +67,9 @@ namespace crow
constexpr bool is_equ_p(const char* a, const char* b, unsigned n)
{
return
- *a == 0 || *b == 0
+ *a == 0 && *b == 0 && n == 0
+ ? true :
+ (*a == 0 || *b == 0)
? false :
n == 0
? true :