]> granicus.if.org Git - php/commitdiff
fix possible unititialized pointer usage
authorAnatol Belski <ab@php.net>
Thu, 12 Mar 2015 12:00:36 +0000 (13:00 +0100)
committerAnatol Belski <ab@php.net>
Thu, 12 Mar 2015 12:00:36 +0000 (13:00 +0100)
ext/fileinfo/libmagic/print.c

index 88767dd702a73bb642f36686dc00169785d5ccfc..cdfbd37834552820a591886c6b99db6f02ba2f17 100644 (file)
@@ -78,7 +78,7 @@ file_fmttime(uint64_t v, int flags, char *buf)
 {
        char *pp;
        time_t t = (time_t)v;
-       struct tm *tm;
+       struct tm *tm = NULL;
 
        if (flags & FILE_T_WINDOWS) {
                struct timeval ts;