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

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

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

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

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