ffmpeg.c:4131: error: Null Dereference
  pointer `today` last assigned on line 4129 could be null and is dereferenced at line 4131, column 69.

ffmpeg.c:4125:1: start of procedure opt_vstats()
4123. }
4124. 
4125. static void opt_vstats (void)
      ^
4126. {
4127.     char filename[40];

ffmpeg.c:4128:5: 
4126. {
4127.     char filename[40];
4128.     time_t today2 = time(NULL);
          ^
4129.     struct tm *today = localtime(&today2);
4130. 

ffmpeg.c:4129:5: 
4127.     char filename[40];
4128.     time_t today2 = time(NULL);
4129.     struct tm *today = localtime(&today2);
          ^
4130. 
4131.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4131:5: 
4129.     struct tm *today = localtime(&today2);
4130. 
4131.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4132.              today->tm_sec);
4133.     opt_vstats_file(filename);

static void opt_vstats (void)
{
    char filename[40];
    time_t today2 = time(NULL);
    struct tm *today = localtime(&today2);
    snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
             today->tm_sec);
    opt_vstats_file(filename);
}
['static void opt_vstats (void)\n{\n    char filename[40];\n    time_t today2 = time(NULL);\n    struct tm *today = localtime(&today2);\n    snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,\n             today->tm_sec);\n    opt_vstats_file(filename);\n}']