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

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

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

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

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