avconv.c:4297: error: Null Dereference
  pointer `today` last assigned on line 4295 could be null and is dereferenced at line 4297, column 69.

avconv.c:4291:1: start of procedure opt_vstats()
4289. }
4290. 
4291. static int opt_vstats(const char *opt, const char *arg)
      ^
4292. {
4293.     char filename[40];

avconv.c:4294:5: 
4292. {
4293.     char filename[40];
4294.     time_t today2 = time(NULL);
          ^
4295.     struct tm *today = localtime(&today2);
4296. 

avconv.c:4295:5: 
4293.     char filename[40];
4294.     time_t today2 = time(NULL);
4295.     struct tm *today = localtime(&today2);
          ^
4296. 
4297.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4297:5: 
4295.     struct tm *today = localtime(&today2);
4296. 
4297.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4298.              today->tm_sec);
4299.     return opt_vstats_file(opt, filename);
