avconv_opt.c:1893: error: Null Dereference
  pointer `today` last assigned on line 1891 could be null and is dereferenced at line 1893, column 69.

avconv_opt.c:1887:1: start of procedure opt_vstats()
1885. }
1886. 
1887. static int opt_vstats(void *optctx, const char *opt, const char *arg)
      ^
1888. {
1889.     char filename[40];

avconv_opt.c:1890:5: 
1888. {
1889.     char filename[40];
1890.     time_t today2 = time(NULL);
          ^
1891.     struct tm *today = localtime(&today2);
1892. 

avconv_opt.c:1891:5: 
1889.     char filename[40];
1890.     time_t today2 = time(NULL);
1891.     struct tm *today = localtime(&today2);
          ^
1892. 
1893.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,

avconv_opt.c:1893:5: 
1891.     struct tm *today = localtime(&today2);
1892. 
1893.     snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
          ^
1894.              today->tm_sec);
1895.     return opt_vstats_file(NULL, opt, filename);

static int opt_vstats(void *optctx, 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(NULL, opt, filename);
}
['static int opt_vstats(void *optctx, 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(NULL, opt, filename);\n}']