]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW braino
authorwessels <>
Thu, 9 Apr 1998 06:39:00 +0000 (06:39 +0000)
committerwessels <>
Thu, 9 Apr 1998 06:39:00 +0000 (06:39 +0000)
src/cache_cf.cc

index a88d42d2023de00bdfbbeed7a063c54e9df6db8b..3b6f6c25676b5b132bad4f7083e0c5c164b629c6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.273 1998/04/08 23:49:00 wessels Exp $
+ * $Id: cache_cf.cc,v 1.274 1998/04/09 00:39:00 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -294,7 +294,9 @@ parseTimeLine(time_t * tptr, const char *units)
        self_destruct();
     d = atof(token);
     m = u;                     /* default to 'units' if none specified */
-    if (d && (token = strtok(NULL, w_space)) == NULL)
+    if (0 == d)
+       (void) 0;
+    else if ((token = strtok(NULL, w_space)) == NULL)
        debug(3, 0) ("WARNING: No units on '%s', assuming %f %s\n",
            config_input_line, d, units);
     else if ((m = parseTimeUnits(token)) == 0)
@@ -340,7 +342,9 @@ parseBytesLine(size_t * bptr, const char *units)
        self_destruct();
     d = atof(token);
     m = u;                     /* default to 'units' if none specified */
-    if (d && (token = strtok(NULL, w_space)) == NULL)
+    if (0 == d)
+       (void) 0;
+    if ((token = strtok(NULL, w_space)) == NULL)
        debug(3, 0) ("WARNING: No units on '%s', assuming %f %s\n",
            config_input_line, d, units);
     else if ((m = parseBytesUnits(token)) == 0)