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

avserver.c:3906:1: start of procedure load_module()
3904. 
3905. #if HAVE_DLOPEN
3906. static void load_module(const char *filename)
      ^
3907. {
3908.     void *dll;

avserver.c:3910:5: Skipping dlopen(): method has no implementation
3908.     void *dll;
3909.     void (*init_func)(void);
3910.     dll = dlopen(filename, RTLD_NOW);
          ^
3911.     if (!dll) {
3912.         fprintf(stderr, "Could not load module '%s' - %s\n",

avserver.c:3911:10: Taking false branch
3909.     void (*init_func)(void);
3910.     dll = dlopen(filename, RTLD_NOW);
3911.     if (!dll) {
               ^
3912.         fprintf(stderr, "Could not load module '%s' - %s\n",
3913.                 filename, dlerror());

avserver.c:3917:5: Skipping dlsym(): method has no implementation
3915.     }
3916. 
3917.     init_func = dlsym(dll, "avserver_module_init");
          ^
3918.     if (!init_func) {
3919.         fprintf(stderr,

avserver.c:3918:10: Taking true branch
3916. 
3917.     init_func = dlsym(dll, "avserver_module_init");
3918.     if (!init_func) {
               ^
3919.         fprintf(stderr,
3920.                 "%s: init function 'avserver_module_init()' not found\n",

avserver.c:3919:9: 
3917.     init_func = dlsym(dll, "avserver_module_init");
3918.     if (!init_func) {
3919.         fprintf(stderr,
              ^
3920.                 "%s: init function 'avserver_module_init()' not found\n",
3921.                 filename);

avserver.c:3922:9: Skipping dlclose(): method has no implementation
3920.                 "%s: init function 'avserver_module_init()' not found\n",
3921.                 filename);
3922.         dlclose(dll);
              ^
3923.     }
3924. 

avserver.c:3925:5: 
3923.     }
3924. 
3925.     init_func();
          ^
3926. }
3927. #endif
