]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Replace strlen with simpler check
authorAlan T. DeKok <aland@freeradius.org>
Fri, 2 Dec 2011 16:48:33 +0000 (17:48 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Dec 2011 16:48:33 +0000 (17:48 +0100)
src/modules/rlm_acctlog/rlm_acctlog.c

index 2a840e7f81c050efa06324f95161f5283ce7c768..1b80b5660b9644e32db01f3cfa85e5bcfd893e89 100644 (file)
@@ -112,8 +112,7 @@ static int do_acctlog_acct(void *instance, REQUEST *request)
 
        }
 
-       if (strlen(logstr))
-               radlog(L_ACCT,"%s", logstr);
+       if (*logstr) radlog(L_ACCT,"%s", logstr);
 
        return RLM_MODULE_OK;
 }