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

avconv.c:4727:1: start of procedure opt_vstats()
4725. }
4726. 
4727. static int opt_vstats(const char *opt, const char *arg)
      ^
4728. {
4729.     char filename[40];

avconv.c:4730:5: 
4728. {
4729.     char filename[40];
4730.     time_t today2 = time(NULL);
          ^
4731.     struct tm *today = localtime(&today2);
4732. 

avconv.c:4731:5: 
4729.     char filename[40];
4730.     time_t today2 = time(NULL);
4731.     struct tm *today = localtime(&today2);
          ^
4732. 
4733.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4733:5: 
4731.     struct tm *today = localtime(&today2);
4732. 
4733.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4734.              today->tm_sec);
4735.     return opt_vstats_file(opt, filename);
