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

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

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

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

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