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

avconv_opt.c:1882:1: start of procedure opt_vstats()
1880. }
1881. 
1882. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1883. {
1884.     char filename[40];

avconv_opt.c:1885:5: 
1883. {
1884.     char filename[40];
1885.     time_t today2 = time(NULL);
          ^
1886.     struct tm *today = localtime(&today2);
1887. 

avconv_opt.c:1886:5: 
1884.     char filename[40];
1885.     time_t today2 = time(NULL);
1886.     struct tm *today = localtime(&today2);
          ^
1887. 
1888.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1888:5: 
1886.     struct tm *today = localtime(&today2);
1887. 
1888.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1889.              today->tm_sec);
1890.     return opt_vstats_file(NULL, opt, filename);
