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

avconv_opt.c:1896:1: start of procedure opt_vstats()
1894. }
1895. 
1896. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1897. {
1898.     char filename[40];

avconv_opt.c:1899:5: 
1897. {
1898.     char filename[40];
1899.     time_t today2 = time(NULL);
          ^
1900.     struct tm *today = localtime(&today2);
1901. 

avconv_opt.c:1900:5: 
1898.     char filename[40];
1899.     time_t today2 = time(NULL);
1900.     struct tm *today = localtime(&today2);
          ^
1901. 
1902.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1902:5: 
1900.     struct tm *today = localtime(&today2);
1901. 
1902.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1903.              today->tm_sec);
1904.     return opt_vstats_file(NULL, opt, filename);
