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

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

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

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

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