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

ffmpeg.c:4059:1: start of procedure opt_vstats()
4057. }
4058. 
4059. static void opt_vstats (void)
      ^
4060. {
4061.     char filename[40];

ffmpeg.c:4062:5: 
4060. {
4061.     char filename[40];
4062.     time_t today2 = time(NULL);
          ^
4063.     struct tm *today = localtime(&today2);
4064. 

ffmpeg.c:4063:5: 
4061.     char filename[40];
4062.     time_t today2 = time(NULL);
4063.     struct tm *today = localtime(&today2);
          ^
4064. 
4065.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

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