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

ffserver.c:3922:1: start of procedure load_module()
3920. 
3921. #if HAVE_DLOPEN
3922. static void load_module(const char *filename)
      ^
3923. {
3924.     void *dll;

ffserver.c:3926:5: Skipping dlopen(): method has no implementation
3924.     void *dll;
3925.     void (*init_func)(void);
3926.     dll = dlopen(filename, RTLD_NOW);
          ^
3927.     if (!dll) {
3928.         fprintf(stderr, "Could not load module '%s' - %s\n",

ffserver.c:3927:10: Taking false branch
3925.     void (*init_func)(void);
3926.     dll = dlopen(filename, RTLD_NOW);
3927.     if (!dll) {
               ^
3928.         fprintf(stderr, "Could not load module '%s' - %s\n",
3929.                 filename, dlerror());

ffserver.c:3933:5: Skipping dlsym(): method has no implementation
3931.     }
3932. 
3933.     init_func = dlsym(dll, "ffserver_module_init");
          ^
3934.     if (!init_func) {
3935.         fprintf(stderr,

ffserver.c:3934:10: Taking true branch
3932. 
3933.     init_func = dlsym(dll, "ffserver_module_init");
3934.     if (!init_func) {
               ^
3935.         fprintf(stderr,
3936.                 "%s: init function 'ffserver_module_init()' not found\n",

ffserver.c:3935:9: 
3933.     init_func = dlsym(dll, "ffserver_module_init");
3934.     if (!init_func) {
3935.         fprintf(stderr,
              ^
3936.                 "%s: init function 'ffserver_module_init()' not found\n",
3937.                 filename);

ffserver.c:3938:9: Skipping dlclose(): method has no implementation
3936.                 "%s: init function 'ffserver_module_init()' not found\n",
3937.                 filename);
3938.         dlclose(dll);
              ^
3939.     }
3940. 

ffserver.c:3941:5: 
3939.     }
3940. 
3941.     init_func();
          ^
3942. }
3943. #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}']