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

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

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

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

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