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

avconv.c:4275:1: start of procedure opt_vstats()
4273. }
4274. 
4275. static int opt_vstats(const char *opt, const char *arg)
      ^
4276. {
4277.     char filename[40];

avconv.c:4278:5: 
4276. {
4277.     char filename[40];
4278.     time_t today2 = time(NULL);
          ^
4279.     struct tm *today = localtime(&today2);
4280. 

avconv.c:4279:5: 
4277.     char filename[40];
4278.     time_t today2 = time(NULL);
4279.     struct tm *today = localtime(&today2);
          ^
4280. 
4281.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4281:5: 
4279.     struct tm *today = localtime(&today2);
4280. 
4281.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4282.              today->tm_sec);
4283.     return opt_vstats_file(opt, filename);
