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

avconv.c:3934:1: start of procedure opt_vstats()
3932. }
3933. 
3934. static int opt_vstats(const char *opt, const char *arg)
      ^
3935. {
3936.     char filename[40];

avconv.c:3937:5: 
3935. {
3936.     char filename[40];
3937.     time_t today2 = time(NULL);
          ^
3938.     struct tm *today = localtime(&today2);
3939. 

avconv.c:3938:5: 
3936.     char filename[40];
3937.     time_t today2 = time(NULL);
3938.     struct tm *today = localtime(&today2);
          ^
3939. 
3940.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3940:5: 
3938.     struct tm *today = localtime(&today2);
3939. 
3940.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3941.              today->tm_sec);
3942.     return opt_vstats_file(opt, filename);
