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

avconv_opt.c:1809:1: start of procedure opt_vstats()
1807. }
1808. 
1809. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1810. {
1811.     char filename[40];

avconv_opt.c:1812:5: 
1810. {
1811.     char filename[40];
1812.     time_t today2 = time(NULL);
          ^
1813.     struct tm *today = localtime(&today2);
1814. 

avconv_opt.c:1813:5: 
1811.     char filename[40];
1812.     time_t today2 = time(NULL);
1813.     struct tm *today = localtime(&today2);
          ^
1814. 
1815.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1815:5: 
1813.     struct tm *today = localtime(&today2);
1814. 
1815.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1816.              today->tm_sec);
1817.     return opt_vstats_file(NULL, opt, filename);
