avconv.c:3869: error: Null Dereference
  pointer `today` last assigned on line 3867 could be null and is dereferenced at line 3869, column 69.

avconv.c:3863:1: start of procedure opt_vstats()
3861. }
3862. 
3863. static int opt_vstats(const char *opt, const char *arg)
      ^
3864. {
3865.     char filename[40];

avconv.c:3866:5: 
3864. {
3865.     char filename[40];
3866.     time_t today2 = time(NULL);
          ^
3867.     struct tm *today = localtime(&today2);
3868. 

avconv.c:3867:5: 
3865.     char filename[40];
3866.     time_t today2 = time(NULL);
3867.     struct tm *today = localtime(&today2);
          ^
3868. 
3869.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3869:5: 
3867.     struct tm *today = localtime(&today2);
3868. 
3869.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3870.              today->tm_sec);
3871.     return opt_vstats_file(opt, filename);

static int opt_vstats(const char *opt, const char *arg)
{
    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);
    return opt_vstats_file(opt, filename);
}
['static int opt_vstats(const char *opt, const char *arg)\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    return opt_vstats_file(opt, filename);\n}']