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

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

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

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

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