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

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

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

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

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

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

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

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

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