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

avconv.c:4043:1: start of procedure opt_vstats()
4041. }
4042. 
4043. static int opt_vstats(const char *opt, const char *arg)
      ^
4044. {
4045.     char filename[40];

avconv.c:4046:5: 
4044. {
4045.     char filename[40];
4046.     time_t today2 = time(NULL);
          ^
4047.     struct tm *today = localtime(&today2);
4048. 

avconv.c:4047:5: 
4045.     char filename[40];
4046.     time_t today2 = time(NULL);
4047.     struct tm *today = localtime(&today2);
          ^
4048. 
4049.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4049:5: 
4047.     struct tm *today = localtime(&today2);
4048. 
4049.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4050.              today->tm_sec);
4051.     return opt_vstats_file(opt, filename);
