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

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

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

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

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