avserver.c:3938: error: Null Dereference
  pointer `init_func` last assigned on line 3930 could be null and is dereferenced at line 3938, column 5.

avserver.c:3919:1: start of procedure load_module()
3917. 
3918. #if HAVE_DLOPEN
3919. static void load_module(const char *filename)
      ^
3920. {
3921.     void *dll;

avserver.c:3923:5: Skipping dlopen(): method has no implementation
3921.     void *dll;
3922.     void (*init_func)(void);
3923.     dll = dlopen(filename, RTLD_NOW);
          ^
3924.     if (!dll) {
3925.         fprintf(stderr, "Could not load module '%s' - %s\n",

avserver.c:3924:10: Taking false branch
3922.     void (*init_func)(void);
3923.     dll = dlopen(filename, RTLD_NOW);
3924.     if (!dll) {
               ^
3925.         fprintf(stderr, "Could not load module '%s' - %s\n",
3926.                 filename, dlerror());

avserver.c:3930:5: Skipping dlsym(): method has no implementation
3928.     }
3929. 
3930.     init_func = dlsym(dll, "avserver_module_init");
          ^
3931.     if (!init_func) {
3932.         fprintf(stderr,

avserver.c:3931:10: Taking true branch
3929. 
3930.     init_func = dlsym(dll, "avserver_module_init");
3931.     if (!init_func) {
               ^
3932.         fprintf(stderr,
3933.                 "%s: init function 'avserver_module_init()' not found\n",

avserver.c:3932:9: 
3930.     init_func = dlsym(dll, "avserver_module_init");
3931.     if (!init_func) {
3932.         fprintf(stderr,
              ^
3933.                 "%s: init function 'avserver_module_init()' not found\n",
3934.                 filename);

avserver.c:3935:9: Skipping dlclose(): method has no implementation
3933.                 "%s: init function 'avserver_module_init()' not found\n",
3934.                 filename);
3935.         dlclose(dll);
              ^
3936.     }
3937. 

avserver.c:3938:5: 
3936.     }
3937. 
3938.     init_func();
          ^
3939. }
3940. #endif
