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

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

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

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

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