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

avconv.c:3955:1: start of procedure opt_vstats()
3953. }
3954. 
3955. static int opt_vstats(const char *opt, const char *arg)
      ^
3956. {
3957.     char filename[40];

avconv.c:3958:5: 
3956. {
3957.     char filename[40];
3958.     time_t today2 = time(NULL);
          ^
3959.     struct tm *today = localtime(&today2);
3960. 

avconv.c:3959:5: 
3957.     char filename[40];
3958.     time_t today2 = time(NULL);
3959.     struct tm *today = localtime(&today2);
          ^
3960. 
3961.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3961:5: 
3959.     struct tm *today = localtime(&today2);
3960. 
3961.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3962.              today->tm_sec);
3963.     return opt_vstats_file(opt, filename);
