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

avconv.c:3890:1: start of procedure opt_vstats()
3888. }
3889. 
3890. static int opt_vstats(const char *opt, const char *arg)
      ^
3891. {
3892.     char filename[40];

avconv.c:3893:5: 
3891. {
3892.     char filename[40];
3893.     time_t today2 = time(NULL);
          ^
3894.     struct tm *today = localtime(&today2);
3895. 

avconv.c:3894:5: 
3892.     char filename[40];
3893.     time_t today2 = time(NULL);
3894.     struct tm *today = localtime(&today2);
          ^
3895. 
3896.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3896:5: 
3894.     struct tm *today = localtime(&today2);
3895. 
3896.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3897.              today->tm_sec);
3898.     return opt_vstats_file(opt, filename);
