diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index 4419cfa4b12e40acac2e6f555cdb7fec3e4059a7..6e4cdb07a5853a4f91d9af27b73caa5add9e9824 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -324,7 +324,7 @@ static bool peek_ipv6(const char *str, size_t *skip)
     }
     else if(c == ']') {
       *skip = i;
-      return colons >= 2;
+      return colons >= 2 ? TRUE : FALSE;
     }
     else {
       return FALSE;