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

avconv.c:3988:1: start of procedure opt_vstats()
3986. }
3987. 
3988. static int opt_vstats(const char *opt, const char *arg)
      ^
3989. {
3990.     char filename[40];

avconv.c:3991:5: 
3989. {
3990.     char filename[40];
3991.     time_t today2 = time(NULL);
          ^
3992.     struct tm *today = localtime(&today2);
3993. 

avconv.c:3992:5: 
3990.     char filename[40];
3991.     time_t today2 = time(NULL);
3992.     struct tm *today = localtime(&today2);
          ^
3993. 
3994.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3994:5: 
3992.     struct tm *today = localtime(&today2);
3993. 
3994.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3995.              today->tm_sec);
3996.     return opt_vstats_file(opt, filename);
