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

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

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

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

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