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

avconv_opt.c:1797:1: start of procedure opt_vstats()
1795. }
1796. 
1797. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1798. {
1799.     char filename[40];

avconv_opt.c:1800:5: 
1798. {
1799.     char filename[40];
1800.     time_t today2 = time(NULL);
          ^
1801.     struct tm *today = localtime(&today2);
1802. 

avconv_opt.c:1801:5: 
1799.     char filename[40];
1800.     time_t today2 = time(NULL);
1801.     struct tm *today = localtime(&today2);
          ^
1802. 
1803.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1803:5: 
1801.     struct tm *today = localtime(&today2);
1802. 
1803.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1804.              today->tm_sec);
1805.     return opt_vstats_file(NULL, opt, filename);
