avconv_opt.c:1637: error: Null Dereference
  pointer `today` last assigned on line 1635 could be null and is dereferenced at line 1637, column 69.

avconv_opt.c:1631:1: start of procedure opt_vstats()
1629. }
1630. 
1631. static int opt_vstats(const char *opt, const char *arg)
      ^
1632. {
1633.     char filename[40];

avconv_opt.c:1634:5: 
1632. {
1633.     char filename[40];
1634.     time_t today2 = time(NULL);
          ^
1635.     struct tm *today = localtime(&today2);
1636. 

avconv_opt.c:1635:5: 
1633.     char filename[40];
1634.     time_t today2 = time(NULL);
1635.     struct tm *today = localtime(&today2);
          ^
1636. 
1637.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1637:5: 
1635.     struct tm *today = localtime(&today2);
1636. 
1637.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1638.              today->tm_sec);
1639.     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}']