]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return dict, 'out' must not be NULL
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 May 2017 19:52:03 +0000 (15:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 May 2017 19:52:03 +0000 (15:52 -0400)
CID #1400033

src/lib/util/dict.c

index 92cbbcee6b4e3501add3c056138f48971911a54f..1fdba6ec421b40f4c0b98b36b258a79cdb979f8f 100644 (file)
@@ -2852,7 +2852,7 @@ int fr_dict_from_file(TALLOC_CTX *ctx, fr_dict_t **out, char const *dir, char co
        fr_hash_table_walk(dict->values_by_da, hash_null_callback, NULL);
        fr_hash_table_walk(dict->values_by_alias, hash_null_callback, NULL);
 
-       if (out) *out = dict;
+       *out = dict;
 
        return 0;
 }