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

avconv_opt.c:1650:1: start of procedure opt_vstats()
1648. }
1649. 
1650. static int opt_vstats(const char *opt, const char *arg)
      ^
1651. {
1652.     char filename[40];

avconv_opt.c:1653:5: 
1651. {
1652.     char filename[40];
1653.     time_t today2 = time(NULL);
          ^
1654.     struct tm *today = localtime(&today2);
1655. 

avconv_opt.c:1654:5: 
1652.     char filename[40];
1653.     time_t today2 = time(NULL);
1654.     struct tm *today = localtime(&today2);
          ^
1655. 
1656.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1656:5: 
1654.     struct tm *today = localtime(&today2);
1655. 
1656.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1657.              today->tm_sec);
1658.     return opt_vstats_file(opt, filename);
