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

avconv.c:4318:1: start of procedure opt_vstats()
4316. }
4317. 
4318. static int opt_vstats(const char *opt, const char *arg)
      ^
4319. {
4320.     char filename[40];

avconv.c:4321:5: 
4319. {
4320.     char filename[40];
4321.     time_t today2 = time(NULL);
          ^
4322.     struct tm *today = localtime(&today2);
4323. 

avconv.c:4322:5: 
4320.     char filename[40];
4321.     time_t today2 = time(NULL);
4322.     struct tm *today = localtime(&today2);
          ^
4323. 
4324.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4324:5: 
4322.     struct tm *today = localtime(&today2);
4323. 
4324.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4325.              today->tm_sec);
4326.     return opt_vstats_file(opt, filename);
