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

avconv.c:4700:1: start of procedure opt_vstats()
4698. }
4699. 
4700. static int opt_vstats(const char *opt, const char *arg)
      ^
4701. {
4702.     char filename[40];

avconv.c:4703:5: 
4701. {
4702.     char filename[40];
4703.     time_t today2 = time(NULL);
          ^
4704.     struct tm *today = localtime(&today2);
4705. 

avconv.c:4704:5: 
4702.     char filename[40];
4703.     time_t today2 = time(NULL);
4704.     struct tm *today = localtime(&today2);
          ^
4705. 
4706.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv.c:4706:5: 
4704.     struct tm *today = localtime(&today2);
4705. 
4706.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
4707.              today->tm_sec);
4708.     return opt_vstats_file(opt, filename);

static int opt_vstats(const char *opt, const char *arg)
{
    char filename[40];
    time_t today2 = time(NULL);
    struct tm *today = localtime(&today2);
    snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
             today->tm_sec);
    return opt_vstats_file(opt, filename);
}
['static int opt_vstats(const char *opt, const char *arg)\n{\n    char filename[40];\n    time_t today2 = time(NULL);\n    struct tm *today = localtime(&today2);\n    snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,\n             today->tm_sec);\n    return opt_vstats_file(opt, filename);\n}']