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

avconv_opt.c:1850:1: start of procedure opt_vstats()
1848. }
1849. 
1850. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1851. {
1852.     char filename[40];

avconv_opt.c:1853:5: 
1851. {
1852.     char filename[40];
1853.     time_t today2 = time(NULL);
          ^
1854.     struct tm *today = localtime(&today2);
1855. 

avconv_opt.c:1854:5: 
1852.     char filename[40];
1853.     time_t today2 = time(NULL);
1854.     struct tm *today = localtime(&today2);
          ^
1855. 
1856.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1856:5: 
1854.     struct tm *today = localtime(&today2);
1855. 
1856.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1857.              today->tm_sec);
1858.     return opt_vstats_file(NULL, opt, filename);
