From: Frederic Marchal Date: Mon, 25 May 2015 18:10:53 +0000 (+0200) Subject: Take the useragent log file into account X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b64c31617179fefa5452ecfef4deb418c83b03d;p=thirdparty%2Fsarg.git Take the useragent log file into account The useragent log file provided on the command line with option -b was ignored. Thanks to Yakushev Evgeniy for reporting this bug. --- diff --git a/log.c b/log.c index c38e741..681197a 100644 --- a/log.c +++ b/log.c @@ -549,7 +549,7 @@ int main(int argc,char *argv[]) else ReadFilter.max_elapsed=0; - if(uagent[0] == '\0') strcpy(uagent,UserAgentLog); + if(uagent[0] != '\0') strcpy(UserAgentLog,uagent); if(tmp[0] == '\0') strcpy(tmp,TempDir); else strcpy(TempDir,tmp);