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

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

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

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

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