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

avconv.c:4808:1: start of procedure opt_vstats()
4806. }
4807. 
4808. static int opt_vstats(const char *opt, const char *arg)
      ^
4809. {
4810.     char filename[40];

avconv.c:4811:5: 
4809. {
4810.     char filename[40];
4811.     time_t today2 = time(NULL);
          ^
4812.     struct tm *today = localtime(&today2);
4813. 

avconv.c:4812:5: 
4810.     char filename[40];
4811.     time_t today2 = time(NULL);
4812.     struct tm *today = localtime(&today2);
          ^
4813. 
4814.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4814:5: 
4812.     struct tm *today = localtime(&today2);
4813. 
4814.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4815.              today->tm_sec);
4816.     return opt_vstats_file(opt, filename);
