From: Alan T. DeKok Date: Wed, 28 Aug 2024 22:03:01 +0000 (-0400) Subject: variable can't be NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9a602a7782006c853c916f8a37eeae20fdf8b80;p=thirdparty%2Ffreeradius-server.git variable can't be NULL --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index 0f99fa92ea3..473bfc09f4a 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -1380,7 +1380,7 @@ static ssize_t fr_skip_condition(char const *start, char const *end, bool const /* * In the configuration files, conditions end with ") {" or just "{" */ - if ((depth == 0) && terminal && terminal[(uint8_t) *p]) { + if ((depth == 0) && terminal[(uint8_t) *p]) { return p - start; } @@ -1502,7 +1502,7 @@ static ssize_t fr_skip_condition(char const *start, char const *end, bool const */ if (eol) *eol = (depth > 0); - if (terminal && terminal[(uint8_t) *p]) return p - start; + if (terminal[(uint8_t) *p]) return p - start; fr_strerror_const("Unexpected end of condition"); return -(p - start);