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

ffmpeg.c:3954:1: start of procedure opt_vstats()
3952. }
3953. 
3954. static void opt_vstats (void)
      ^
3955. {
3956.     char filename[40];

ffmpeg.c:3957:5: 
3955. {
3956.     char filename[40];
3957.     time_t today2 = time(NULL);
          ^
3958.     struct tm *today = localtime(&today2);
3959. 

ffmpeg.c:3958:5: 
3956.     char filename[40];
3957.     time_t today2 = time(NULL);
3958.     struct tm *today = localtime(&today2);
          ^
3959. 
3960.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

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