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

avconv.c:4290:1: start of procedure opt_vstats()
4288. }
4289. 
4290. static int opt_vstats(const char *opt, const char *arg)
      ^
4291. {
4292.     char filename[40];

avconv.c:4293:5: 
4291. {
4292.     char filename[40];
4293.     time_t today2 = time(NULL);
          ^
4294.     struct tm *today = localtime(&today2);
4295. 

avconv.c:4294:5: 
4292.     char filename[40];
4293.     time_t today2 = time(NULL);
4294.     struct tm *today = localtime(&today2);
          ^
4295. 
4296.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4296:5: 
4294.     struct tm *today = localtime(&today2);
4295. 
4296.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4297.              today->tm_sec);
4298.     return opt_vstats_file(opt, filename);
