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

avconv.c:4773:1: start of procedure opt_vstats()
4771. }
4772. 
4773. static int opt_vstats(const char *opt, const char *arg)
      ^
4774. {
4775.     char filename[40];

avconv.c:4776:5: 
4774. {
4775.     char filename[40];
4776.     time_t today2 = time(NULL);
          ^
4777.     struct tm *today = localtime(&today2);
4778. 

avconv.c:4777:5: 
4775.     char filename[40];
4776.     time_t today2 = time(NULL);
4777.     struct tm *today = localtime(&today2);
          ^
4778. 
4779.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4779:5: 
4777.     struct tm *today = localtime(&today2);
4778. 
4779.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4780.              today->tm_sec);
4781.     return opt_vstats_file(opt, filename);
