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

avconv.c:4712:1: start of procedure opt_vstats()
4710. }
4711. 
4712. static int opt_vstats(const char *opt, const char *arg)
      ^
4713. {
4714.     char filename[40];

avconv.c:4715:5: 
4713. {
4714.     char filename[40];
4715.     time_t today2 = time(NULL);
          ^
4716.     struct tm *today = localtime(&today2);
4717. 

avconv.c:4716:5: 
4714.     char filename[40];
4715.     time_t today2 = time(NULL);
4716.     struct tm *today = localtime(&today2);
          ^
4717. 
4718.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4718:5: 
4716.     struct tm *today = localtime(&today2);
4717. 
4718.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4719.              today->tm_sec);
4720.     return opt_vstats_file(opt, filename);
