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

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

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

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

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