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

avconv.c:4311:1: start of procedure opt_vstats()
4309. }
4310. 
4311. static int opt_vstats(const char *opt, const char *arg)
      ^
4312. {
4313.     char filename[40];

avconv.c:4314:5: 
4312. {
4313.     char filename[40];
4314.     time_t today2 = time(NULL);
          ^
4315.     struct tm *today = localtime(&today2);
4316. 

avconv.c:4315:5: 
4313.     char filename[40];
4314.     time_t today2 = time(NULL);
4315.     struct tm *today = localtime(&today2);
          ^
4316. 
4317.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4317:5: 
4315.     struct tm *today = localtime(&today2);
4316. 
4317.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4318.              today->tm_sec);
4319.     return opt_vstats_file(opt, filename);
