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

avconv.c:4681:1: start of procedure opt_vstats()
4679. }
4680. 
4681. static int opt_vstats(const char *opt, const char *arg)
      ^
4682. {
4683.     char filename[40];

avconv.c:4684:5: 
4682. {
4683.     char filename[40];
4684.     time_t today2 = time(NULL);
          ^
4685.     struct tm *today = localtime(&today2);
4686. 

avconv.c:4685:5: 
4683.     char filename[40];
4684.     time_t today2 = time(NULL);
4685.     struct tm *today = localtime(&today2);
          ^
4686. 
4687.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4687:5: 
4685.     struct tm *today = localtime(&today2);
4686. 
4687.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4688.              today->tm_sec);
4689.     return opt_vstats_file(opt, filename);
