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

avconv.c:3862:1: start of procedure opt_vstats()
3860. }
3861. 
3862. static int opt_vstats(const char *opt, const char *arg)
      ^
3863. {
3864.     char filename[40];

avconv.c:3865:5: 
3863. {
3864.     char filename[40];
3865.     time_t today2 = time(NULL);
          ^
3866.     struct tm *today = localtime(&today2);
3867. 

avconv.c:3866:5: 
3864.     char filename[40];
3865.     time_t today2 = time(NULL);
3866.     struct tm *today = localtime(&today2);
          ^
3867. 
3868.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3868:5: 
3866.     struct tm *today = localtime(&today2);
3867. 
3868.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3869.              today->tm_sec);
3870.     return opt_vstats_file(opt, filename);
