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

avconv.c:4367:1: start of procedure opt_vstats()
4365. }
4366. 
4367. static int opt_vstats(const char *opt, const char *arg)
      ^
4368. {
4369.     char filename[40];

avconv.c:4370:5: 
4368. {
4369.     char filename[40];
4370.     time_t today2 = time(NULL);
          ^
4371.     struct tm *today = localtime(&today2);
4372. 

avconv.c:4371:5: 
4369.     char filename[40];
4370.     time_t today2 = time(NULL);
4371.     struct tm *today = localtime(&today2);
          ^
4372. 
4373.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4373:5: 
4371.     struct tm *today = localtime(&today2);
4372. 
4373.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4374.              today->tm_sec);
4375.     return opt_vstats_file(opt, filename);
