]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
no need to check for 'ref==NULL'
authorAlan T. DeKok <aland@freeradius.org>
Sat, 18 Sep 2021 19:43:14 +0000 (15:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 18 Sep 2021 19:43:14 +0000 (15:43 -0400)
src/lib/util/dict_tokenize.c

index c0ff630966272d63cef8a0c7b3ffa61979591f10..76a11cf68462a9d73a5fa535acb377e0875c3401 100644 (file)
@@ -289,7 +289,7 @@ static int dict_process_flag_field(dict_tokenize_ctx_t *ctx, char *name, fr_type
 {
        char *p, *next = NULL;
 
-       if (ref) *ref = NULL;
+       *ref = NULL;
 
        /*
         *      Set these as default, so that we can set one (or both) separately as flags.