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

avconv.c:3858:1: start of procedure opt_vstats()
3856. }
3857. 
3858. static int opt_vstats(const char *opt, const char *arg)
      ^
3859. {
3860.     char filename[40];

avconv.c:3861:5: 
3859. {
3860.     char filename[40];
3861.     time_t today2 = time(NULL);
          ^
3862.     struct tm *today = localtime(&today2);
3863. 

avconv.c:3862:5: 
3860.     char filename[40];
3861.     time_t today2 = time(NULL);
3862.     struct tm *today = localtime(&today2);
          ^
3863. 
3864.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:3864:5: 
3862.     struct tm *today = localtime(&today2);
3863. 
3864.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
3865.              today->tm_sec);
3866.     return opt_vstats_file(opt, filename);
