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

ffserver.c:3903:1: start of procedure load_module()
3901. 
3902. #if HAVE_DLOPEN
3903. static void load_module(const char *filename)
      ^
3904. {
3905.     void *dll;

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

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

ffserver.c:3914:5: Skipping dlsym(): method has no implementation
3912.     }
3913. 
3914.     init_func = dlsym(dll, "ffserver_module_init");
          ^
3915.     if (!init_func) {
3916.         fprintf(stderr,

ffserver.c:3915:10: Taking true branch
3913. 
3914.     init_func = dlsym(dll, "ffserver_module_init");
3915.     if (!init_func) {
               ^
3916.         fprintf(stderr,
3917.                 "%s: init function 'ffserver_module_init()' not found\n",

ffserver.c:3916:9: 
3914.     init_func = dlsym(dll, "ffserver_module_init");
3915.     if (!init_func) {
3916.         fprintf(stderr,
              ^
3917.                 "%s: init function 'ffserver_module_init()' not found\n",
3918.                 filename);

ffserver.c:3919:9: Skipping dlclose(): method has no implementation
3917.                 "%s: init function 'ffserver_module_init()' not found\n",
3918.                 filename);
3919.         dlclose(dll);
              ^
3920.     }
3921. 

ffserver.c:3922:5: 
3920.     }
3921. 
3922.     init_func();
          ^
3923. }
3924. #endif

static void load_module(const char *filename)
{
    void *dll;
    void (*init_func)(void);
    dll = dlopen(filename, RTLD_NOW);
    if (!dll) {
        fprintf(stderr, "Could not load module '%s' - %s\n",
                filename, dlerror());
        return;
    }
    init_func = dlsym(dll, "ffserver_module_init");
    if (!init_func) {
        fprintf(stderr,
                "%s: init function 'ffserver_module_init()' not found\n",
                filename);
        dlclose(dll);
    }
    init_func();
}
['static void load_module(const char *filename)\n{\n    void *dll;\n    void (*init_func)(void);\n    dll = dlopen(filename, RTLD_NOW);\n    if (!dll) {\n        fprintf(stderr, "Could not load module \'%s\' - %s\\n",\n                filename, dlerror());\n        return;\n    }\n    init_func = dlsym(dll, "ffserver_module_init");\n    if (!init_func) {\n        fprintf(stderr,\n                "%s: init function \'ffserver_module_init()\' not found\\n",\n                filename);\n        dlclose(dll);\n    }\n    init_func();\n}']