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

avconv.c:3837:1: start of procedure opt_vstats()
3835. }
3836. 
3837. static int opt_vstats(const char *opt, const char *arg)
      ^
3838. {
3839.     char filename[40];

avconv.c:3840:5: 
3838. {
3839.     char filename[40];
3840.     time_t today2 = time(NULL);
          ^
3841.     struct tm *today = localtime(&today2);
3842. 

avconv.c:3841:5: 
3839.     char filename[40];
3840.     time_t today2 = time(NULL);
3841.     struct tm *today = localtime(&today2);
          ^
3842. 
3843.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3843:5: 
3841.     struct tm *today = localtime(&today2);
3842. 
3843.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3844.              today->tm_sec);
3845.     return opt_vstats_file(opt, filename);
