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

avconv_opt.c:1803:1: start of procedure opt_vstats()
1801. }
1802. 
1803. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1804. {
1805.     char filename[40];

avconv_opt.c:1806:5: 
1804. {
1805.     char filename[40];
1806.     time_t today2 = time(NULL);
          ^
1807.     struct tm *today = localtime(&today2);
1808. 

avconv_opt.c:1807:5: 
1805.     char filename[40];
1806.     time_t today2 = time(NULL);
1807.     struct tm *today = localtime(&today2);
          ^
1808. 
1809.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1809:5: 
1807.     struct tm *today = localtime(&today2);
1808. 
1809.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1810.              today->tm_sec);
1811.     return opt_vstats_file(NULL, opt, filename);
