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

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

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

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

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

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

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

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

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