From: Amos Jeffries Date: Thu, 15 Nov 2012 09:14:52 +0000 (-0700) Subject: squidpurge: Remove useless code X-Git-Tag: SQUID_3_4_0_1~505 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9c12b310775cd08948a7b80e0bbd4a8be4cb2d;p=thirdparty%2Fsquid.git squidpurge: Remove useless code Detected by Coverity Scan. Issue 740353 --- diff --git a/tools/purge/purge.cc b/tools/purge/purge.cc index 6870bc8b59..9024ebb76d 100644 --- a/tools/purge/purge.cc +++ b/tools/purge/purge.cc @@ -208,7 +208,8 @@ concat( const char* start, ... ) // first run: determine size unsigned size = strlen(start)+1; va_start( ap, start ); - while ( (s=va_arg(ap,const char*)) != NULL ) size += strlen(s ? s : ""); + while ( (s=va_arg(ap,const char*)) != NULL ) + size += strlen(s); va_end(ap); // allocate