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

ffmpeg.c:4068:1: start of procedure opt_vstats()
4066. }
4067. 
4068. static void opt_vstats (void)
      ^
4069. {
4070.     char filename[40];

ffmpeg.c:4071:5: 
4069. {
4070.     char filename[40];
4071.     time_t today2 = time(NULL);
          ^
4072.     struct tm *today = localtime(&today2);
4073. 

ffmpeg.c:4072:5: 
4070.     char filename[40];
4071.     time_t today2 = time(NULL);
4072.     struct tm *today = localtime(&today2);
          ^
4073. 
4074.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

ffmpeg.c:4074:5: 
4072.     struct tm *today = localtime(&today2);
4073. 
4074.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4075.              today->tm_sec);
4076.     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}']