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

avconv.c:4265:1: start of procedure opt_vstats()
4263. }
4264. 
4265. static int opt_vstats(const char *opt, const char *arg)
      ^
4266. {
4267.     char filename[40];

avconv.c:4268:5: 
4266. {
4267.     char filename[40];
4268.     time_t today2 = time(NULL);
          ^
4269.     struct tm *today = localtime(&today2);
4270. 

avconv.c:4269:5: 
4267.     char filename[40];
4268.     time_t today2 = time(NULL);
4269.     struct tm *today = localtime(&today2);
          ^
4270. 
4271.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4271:5: 
4269.     struct tm *today = localtime(&today2);
4270. 
4271.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4272.              today->tm_sec);
4273.     return opt_vstats_file(opt, filename);
