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

avconv.c:4816:1: start of procedure opt_vstats()
4814. }
4815. 
4816. static int opt_vstats(const char *opt, const char *arg)
      ^
4817. {
4818.     char filename[40];

avconv.c:4819:5: 
4817. {
4818.     char filename[40];
4819.     time_t today2 = time(NULL);
          ^
4820.     struct tm *today = localtime(&today2);
4821. 

avconv.c:4820:5: 
4818.     char filename[40];
4819.     time_t today2 = time(NULL);
4820.     struct tm *today = localtime(&today2);
          ^
4821. 
4822.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4822:5: 
4820.     struct tm *today = localtime(&today2);
4821. 
4822.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4823.              today->tm_sec);
4824.     return opt_vstats_file(opt, filename);
