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

avconv.c:4256:1: start of procedure opt_vstats()
4254. }
4255. 
4256. static int opt_vstats(const char *opt, const char *arg)
      ^
4257. {
4258.     char filename[40];

avconv.c:4259:5: 
4257. {
4258.     char filename[40];
4259.     time_t today2 = time(NULL);
          ^
4260.     struct tm *today = localtime(&today2);
4261. 

avconv.c:4260:5: 
4258.     char filename[40];
4259.     time_t today2 = time(NULL);
4260.     struct tm *today = localtime(&today2);
          ^
4261. 
4262.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4262:5: 
4260.     struct tm *today = localtime(&today2);
4261. 
4262.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4263.              today->tm_sec);
4264.     return opt_vstats_file(opt, filename);
