]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Remove unecessary strlen (trivial change)
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 7 Jan 2010 15:17:50 +0000 (15:17 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 7 Jan 2010 15:17:50 +0000 (15:17 +0000)
log.c

diff --git a/log.c b/log.c
index 1398f8dfd5097d42a3c1eb857862e6a525198a8d..1469d828a38b3c32aa3bfe52bf1050af2910ad46 100644 (file)
--- 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);