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

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

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

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

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