From: wessels <> Date: Thu, 9 Apr 1998 06:39:00 +0000 (+0000) Subject: DW braino X-Git-Tag: SQUID_3_0_PRE1~3541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=107385619d5dec6b0d0967ef53e7347575177755;p=thirdparty%2Fsquid.git DW braino --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index a88d42d202..3b6f6c2567 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -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)