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

avconv.c:4768:1: start of procedure opt_vstats()
4766. }
4767. 
4768. static int opt_vstats(const char *opt, const char *arg)
      ^
4769. {
4770.     char filename[40];

avconv.c:4771:5: 
4769. {
4770.     char filename[40];
4771.     time_t today2 = time(NULL);
          ^
4772.     struct tm *today = localtime(&today2);
4773. 

avconv.c:4772:5: 
4770.     char filename[40];
4771.     time_t today2 = time(NULL);
4772.     struct tm *today = localtime(&today2);
          ^
4773. 
4774.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4774:5: 
4772.     struct tm *today = localtime(&today2);
4773. 
4774.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4775.              today->tm_sec);
4776.     return opt_vstats_file(opt, filename);
