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

avconv.c:4295:1: start of procedure opt_vstats()
4293. }
4294. 
4295. static int opt_vstats(const char *opt, const char *arg)
      ^
4296. {
4297.     char filename[40];

avconv.c:4298:5: 
4296. {
4297.     char filename[40];
4298.     time_t today2 = time(NULL);
          ^
4299.     struct tm *today = localtime(&today2);
4300. 

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

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