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

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

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

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

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

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

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

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

ffserver.c:3920:5: 
3918.     }
3919. 
3920.     init_func();
          ^
3921. }
3922. #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}']