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

avconv.c:4344:1: start of procedure opt_vstats()
4342. }
4343. 
4344. static int opt_vstats(const char *opt, const char *arg)
      ^
4345. {
4346.     char filename[40];

avconv.c:4347:5: 
4345. {
4346.     char filename[40];
4347.     time_t today2 = time(NULL);
          ^
4348.     struct tm *today = localtime(&today2);
4349. 

avconv.c:4348:5: 
4346.     char filename[40];
4347.     time_t today2 = time(NULL);
4348.     struct tm *today = localtime(&today2);
          ^
4349. 
4350.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4350:5: 
4348.     struct tm *today = localtime(&today2);
4349. 
4350.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4351.              today->tm_sec);
4352.     return opt_vstats_file(opt, filename);
