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

avconv.c:3928:1: start of procedure opt_vstats()
3926. }
3927. 
3928. static int opt_vstats(const char *opt, const char *arg)
      ^
3929. {
3930.     char filename[40];

avconv.c:3931:5: 
3929. {
3930.     char filename[40];
3931.     time_t today2 = time(NULL);
          ^
3932.     struct tm *today = localtime(&today2);
3933. 

avconv.c:3932:5: 
3930.     char filename[40];
3931.     time_t today2 = time(NULL);
3932.     struct tm *today = localtime(&today2);
          ^
3933. 
3934.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3934:5: 
3932.     struct tm *today = localtime(&today2);
3933. 
3934.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3935.              today->tm_sec);
3936.     return opt_vstats_file(opt, filename);
