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

avconv.c:4722:1: start of procedure opt_vstats()
4720. }
4721. 
4722. static int opt_vstats(const char *opt, const char *arg)
      ^
4723. {
4724.     char filename[40];

avconv.c:4725:5: 
4723. {
4724.     char filename[40];
4725.     time_t today2 = time(NULL);
          ^
4726.     struct tm *today = localtime(&today2);
4727. 

avconv.c:4726:5: 
4724.     char filename[40];
4725.     time_t today2 = time(NULL);
4726.     struct tm *today = localtime(&today2);
          ^
4727. 
4728.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4728:5: 
4726.     struct tm *today = localtime(&today2);
4727. 
4728.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4729.              today->tm_sec);
4730.     return opt_vstats_file(opt, filename);
