From: Alan T. DeKok Date: Fri, 2 Dec 2011 16:48:33 +0000 (+0100) Subject: Replace strlen with simpler check X-Git-Tag: release_2_2_0~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b18418bf1ea31c7fc05fb6a6b2bee13b37fb391d;p=thirdparty%2Ffreeradius-server.git Replace strlen with simpler check --- diff --git a/src/modules/rlm_acctlog/rlm_acctlog.c b/src/modules/rlm_acctlog/rlm_acctlog.c index 2a840e7f81c..1b80b5660b9 100644 --- a/src/modules/rlm_acctlog/rlm_acctlog.c +++ b/src/modules/rlm_acctlog/rlm_acctlog.c @@ -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; }