]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize "dl" to shut up scanner
authorAlan T. DeKok <aland@freeradius.org>
Mon, 1 Jun 2020 20:36:17 +0000 (16:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 1 Jun 2020 20:36:52 +0000 (16:36 -0400)
src/bin/unit_test_module.c

index b3c050c7db20e39a96b9a0273d4d6678926e787e..251f57b90e40f3c23ded132963bf1d5353d092cd 100644 (file)
@@ -596,7 +596,7 @@ int main(int argc, char *argv[])
        main_config_t           *config;
        dl_module_loader_t      *dl_modules = NULL;
        dl_loader_t             *dl_loader = NULL;
-       dl_t                    *dl;
+       dl_t                    *dl = NULL;
        char                    buffer[64];
 
        /*
@@ -1079,7 +1079,7 @@ cleanup:
         */
        fr_dict_free(&dict);
 
-       dl_free(dl);
+       if (dl) dl_free(dl);
        talloc_free(dl_loader);
 
        if (dl_modules) talloc_free(dl_modules);