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

avserver.c:3912:1: start of procedure load_module()
3910. 
3911. #if HAVE_DLOPEN
3912. static void load_module(const char *filename)
      ^
3913. {
3914.     void *dll;

avserver.c:3916:5: Skipping dlopen(): method has no implementation
3914.     void *dll;
3915.     void (*init_func)(void);
3916.     dll = dlopen(filename, RTLD_NOW);
          ^
3917.     if (!dll) {
3918.         fprintf(stderr, "Could not load module '%s' - %s\n",

avserver.c:3917:10: Taking false branch
3915.     void (*init_func)(void);
3916.     dll = dlopen(filename, RTLD_NOW);
3917.     if (!dll) {
               ^
3918.         fprintf(stderr, "Could not load module '%s' - %s\n",
3919.                 filename, dlerror());

avserver.c:3923:5: Skipping dlsym(): method has no implementation
3921.     }
3922. 
3923.     init_func = dlsym(dll, "avserver_module_init");
          ^
3924.     if (!init_func) {
3925.         fprintf(stderr,

avserver.c:3924:10: Taking true branch
3922. 
3923.     init_func = dlsym(dll, "avserver_module_init");
3924.     if (!init_func) {
               ^
3925.         fprintf(stderr,
3926.                 "%s: init function 'avserver_module_init()' not found\n",

avserver.c:3925:9: 
3923.     init_func = dlsym(dll, "avserver_module_init");
3924.     if (!init_func) {
3925.         fprintf(stderr,
              ^
3926.                 "%s: init function 'avserver_module_init()' not found\n",
3927.                 filename);

avserver.c:3928:9: Skipping dlclose(): method has no implementation
3926.                 "%s: init function 'avserver_module_init()' not found\n",
3927.                 filename);
3928.         dlclose(dll);
              ^
3929.     }
3930. 

avserver.c:3931:5: 
3929.     }
3930. 
3931.     init_func();
          ^
3932. }
3933. #endif
