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

avconv.c:4705:1: start of procedure opt_vstats()
4703. }
4704. 
4705. static int opt_vstats(const char *opt, const char *arg)
      ^
4706. {
4707.     char filename[40];

avconv.c:4708:5: 
4706. {
4707.     char filename[40];
4708.     time_t today2 = time(NULL);
          ^
4709.     struct tm *today = localtime(&today2);
4710. 

avconv.c:4709:5: 
4707.     char filename[40];
4708.     time_t today2 = time(NULL);
4709.     struct tm *today = localtime(&today2);
          ^
4710. 
4711.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4711:5: 
4709.     struct tm *today = localtime(&today2);
4710. 
4711.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4712.              today->tm_sec);
4713.     return opt_vstats_file(opt, filename);
