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

ffmpeg.c:3800:1: start of procedure opt_vstats()
3798. }
3799. 
3800. static void opt_vstats (void)
      ^
3801. {
3802.     char filename[40];

ffmpeg.c:3803:5: 
3801. {
3802.     char filename[40];
3803.     time_t today2 = time(NULL);
          ^
3804.     struct tm *today = localtime(&today2);
3805. 

ffmpeg.c:3804:5: 
3802.     char filename[40];
3803.     time_t today2 = time(NULL);
3804.     struct tm *today = localtime(&today2);
          ^
3805. 
3806.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

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