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

avconv.c:4007:1: start of procedure opt_vstats()
4005. }
4006. 
4007. static int opt_vstats(const char *opt, const char *arg)
      ^
4008. {
4009.     char filename[40];

avconv.c:4010:5: 
4008. {
4009.     char filename[40];
4010.     time_t today2 = time(NULL);
          ^
4011.     struct tm *today = localtime(&today2);
4012. 

avconv.c:4011:5: 
4009.     char filename[40];
4010.     time_t today2 = time(NULL);
4011.     struct tm *today = localtime(&today2);
          ^
4012. 
4013.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4013:5: 
4011.     struct tm *today = localtime(&today2);
4012. 
4013.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4014.              today->tm_sec);
4015.     return opt_vstats_file(opt, filename);
