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

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

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

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

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