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

avconv.c:3897:1: start of procedure opt_vstats()
3895. }
3896. 
3897. static int opt_vstats(const char *opt, const char *arg)
      ^
3898. {
3899.     char filename[40];

avconv.c:3900:5: 
3898. {
3899.     char filename[40];
3900.     time_t today2 = time(NULL);
          ^
3901.     struct tm *today = localtime(&today2);
3902. 

avconv.c:3901:5: 
3899.     char filename[40];
3900.     time_t today2 = time(NULL);
3901.     struct tm *today = localtime(&today2);
          ^
3902. 
3903.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3903:5: 
3901.     struct tm *today = localtime(&today2);
3902. 
3903.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3904.              today->tm_sec);
3905.     return opt_vstats_file(opt, filename);
