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

ffserver.c:3917:1: start of procedure load_module()
3915. 
3916. #if HAVE_DLOPEN
3917. static void load_module(const char *filename)
      ^
3918. {
3919.     void *dll;

ffserver.c:3921:5: Skipping dlopen(): method has no implementation
3919.     void *dll;
3920.     void (*init_func)(void);
3921.     dll = dlopen(filename, RTLD_NOW);
          ^
3922.     if (!dll) {
3923.         fprintf(stderr, "Could not load module '%s' - %s\n",

ffserver.c:3922:10: Taking false branch
3920.     void (*init_func)(void);
3921.     dll = dlopen(filename, RTLD_NOW);
3922.     if (!dll) {
               ^
3923.         fprintf(stderr, "Could not load module '%s' - %s\n",
3924.                 filename, dlerror());

ffserver.c:3928:5: Skipping dlsym(): method has no implementation
3926.     }
3927. 
3928.     init_func = dlsym(dll, "ffserver_module_init");
          ^
3929.     if (!init_func) {
3930.         fprintf(stderr,

ffserver.c:3929:10: Taking true branch
3927. 
3928.     init_func = dlsym(dll, "ffserver_module_init");
3929.     if (!init_func) {
               ^
3930.         fprintf(stderr,
3931.                 "%s: init function 'ffserver_module_init()' not found\n",

ffserver.c:3930:9: 
3928.     init_func = dlsym(dll, "ffserver_module_init");
3929.     if (!init_func) {
3930.         fprintf(stderr,
              ^
3931.                 "%s: init function 'ffserver_module_init()' not found\n",
3932.                 filename);

ffserver.c:3933:9: Skipping dlclose(): method has no implementation
3931.                 "%s: init function 'ffserver_module_init()' not found\n",
3932.                 filename);
3933.         dlclose(dll);
              ^
3934.     }
3935. 

ffserver.c:3936:5: 
3934.     }
3935. 
3936.     init_func();
          ^
3937. }
3938. #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}']