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

avconv.c:4051:1: start of procedure opt_vstats()
4049. }
4050. 
4051. static int opt_vstats(const char *opt, const char *arg)
      ^
4052. {
4053.     char filename[40];

avconv.c:4054:5: 
4052. {
4053.     char filename[40];
4054.     time_t today2 = time(NULL);
          ^
4055.     struct tm *today = localtime(&today2);
4056. 

avconv.c:4055:5: 
4053.     char filename[40];
4054.     time_t today2 = time(NULL);
4055.     struct tm *today = localtime(&today2);
          ^
4056. 
4057.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4057:5: 
4055.     struct tm *today = localtime(&today2);
4056. 
4057.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4058.              today->tm_sec);
4059.     return opt_vstats_file(opt, filename);
