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

avconv.c:4095:1: start of procedure opt_vstats()
4093. }
4094. 
4095. static int opt_vstats(const char *opt, const char *arg)
      ^
4096. {
4097.     char filename[40];

avconv.c:4098:5: 
4096. {
4097.     char filename[40];
4098.     time_t today2 = time(NULL);
          ^
4099.     struct tm *today = localtime(&today2);
4100. 

avconv.c:4099:5: 
4097.     char filename[40];
4098.     time_t today2 = time(NULL);
4099.     struct tm *today = localtime(&today2);
          ^
4100. 
4101.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4101:5: 
4099.     struct tm *today = localtime(&today2);
4100. 
4101.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4102.              today->tm_sec);
4103.     return opt_vstats_file(opt, filename);
