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

ffmpeg.c:3637:1: start of procedure opt_vstats()
3635. }
3636. 
3637. static void opt_vstats (void)
      ^
3638. {
3639.     char filename[40];

ffmpeg.c:3640:5: 
3638. {
3639.     char filename[40];
3640.     time_t today2 = time(NULL);
          ^
3641.     struct tm *today = localtime(&today2);
3642. 

ffmpeg.c:3641:5: 
3639.     char filename[40];
3640.     time_t today2 = time(NULL);
3641.     struct tm *today = localtime(&today2);
          ^
3642. 
3643.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

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