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

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

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

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

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