diff --git a/lib/cookie.c b/lib/cookie.c index 9221871e4b..1c7fd60f41 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -167,7 +167,7 @@ static bool pathmatch(const char *cookie_path, const char *uri_path) /* cookie_path must not have last '/' separator. ex: /sample */ cookie_path_len = strlen(cookie_path); - if(1 == cookie_path_len) { + if(cookie_path_len == 1) { /* cookie_path must be '/' */ return TRUE; }