]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/DelaySpec.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / DelaySpec.cc
index 3cf3f5cc6a7fccbbd71a9cd12cef185ed97b73fd..d69aec40ecb2a10e0f09e0592eca0e7f9a5d5b29 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -43,8 +43,10 @@ DelaySpec::parse()
 {
     // get the token.
     char *token = ConfigParser::NextToken();
-    if (token == NULL)
+    if (!token) {
         self_destruct();
+        return;
+    }
 
     // no-limit value
     if (strcmp(token, "none") == 0 || token[0] == '-') {