]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
variable can't be NULL
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Aug 2024 22:03:01 +0000 (18:03 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 28 Aug 2024 22:03:01 +0000 (18:03 -0400)
src/lib/server/cf_file.c

index 0f99fa92ea3d0d89e773687367faa04a483a3375..473bfc09f4a4729bd1d86f0dc07a085ce849fa96 100644 (file)
@@ -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);