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

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

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

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

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