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

avconv_opt.c:1861:1: start of procedure opt_vstats()
1859. }
1860. 
1861. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1862. {
1863.     char filename[40];

avconv_opt.c:1864:5: 
1862. {
1863.     char filename[40];
1864.     time_t today2 = time(NULL);
          ^
1865.     struct tm *today = localtime(&today2);
1866. 

avconv_opt.c:1865:5: 
1863.     char filename[40];
1864.     time_t today2 = time(NULL);
1865.     struct tm *today = localtime(&today2);
          ^
1866. 
1867.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1867:5: 
1865.     struct tm *today = localtime(&today2);
1866. 
1867.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1868.              today->tm_sec);
1869.     return opt_vstats_file(NULL, opt, filename);
