From: Frédéric Marchal Date: Thu, 7 Jan 2010 15:17:50 +0000 (+0000) Subject: Remove unecessary strlen (trivial change) X-Git-Tag: v2_2_7~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5151ed4eca64ee836d689259112bc111b17e43;p=thirdparty%2Fsarg.git Remove unecessary strlen (trivial change) --- diff --git a/log.c b/log.c index 1398f8d..1469d82 100644 --- a/log.c +++ b/log.c @@ -509,9 +509,9 @@ int main(int argc,char *argv[]) if(strcmp(ExcludeUsers,"indexonly") == 0) indexonly++; if(strcmp(Index,"only") == 0) indexonly++; - if(strlen(MaxElapsed)>1) max_elapsed=atol(MaxElapsed); + if(MaxElapsed[0] != '\0') max_elapsed=atol(MaxElapsed); - if(strlen(outdir)<1) strcpy(outdir,OutputDir); + if(outdir[0] == '\0') strcpy(outdir,OutputDir); strcat(outdir,"/"); if(uagent[0] == '\0') strcpy(uagent,UserAgentLog);