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

avconv.c:4305:1: start of procedure opt_vstats()
4303. }
4304. 
4305. static int opt_vstats(const char *opt, const char *arg)
      ^
4306. {
4307.     char filename[40];

avconv.c:4308:5: 
4306. {
4307.     char filename[40];
4308.     time_t today2 = time(NULL);
          ^
4309.     struct tm *today = localtime(&today2);
4310. 

avconv.c:4309:5: 
4307.     char filename[40];
4308.     time_t today2 = time(NULL);
4309.     struct tm *today = localtime(&today2);
          ^
4310. 
4311.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4311:5: 
4309.     struct tm *today = localtime(&today2);
4310. 
4311.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4312.              today->tm_sec);
4313.     return opt_vstats_file(opt, filename);
