poldek: poldek/pm/rpm/rpm_pkg_ld.c - initialize variables to prevent access...

megabajt megabajt at pld-linux.org
Sat Sep 6 20:33:07 CEST 2008


Author: megabajt                     Date: Sat Sep  6 18:33:07 2008 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- initialize variables to prevent accessing random memory

---- Files affected:
poldek/poldek/pm/rpm:
   rpm_pkg_ld.c (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: poldek/poldek/pm/rpm/rpm_pkg_ld.c
diff -u poldek/poldek/pm/rpm/rpm_pkg_ld.c:1.17 poldek/poldek/pm/rpm/rpm_pkg_ld.c:1.18
--- poldek/poldek/pm/rpm/rpm_pkg_ld.c:1.17	Sun May 25 11:25:31 2008
+++ poldek/poldek/pm/rpm/rpm_pkg_ld.c	Sat Sep  6 20:33:01 2008
@@ -481,7 +481,7 @@
     struct pkg *pkg;
     uint32_t   epoch, size, btime, itime;
     uint32_t   *psize = NULL, *pbtime = NULL, *pitime = NULL;
-    const char *name, *version, *release, *arch = NULL;
+    const char *name = NULL, *version = NULL, *release = NULL, *arch = NULL;
     char       osbuf[128], *os = osbuf;
     char       srcrpmbuf[128], *srcrpm = srcrpmbuf;
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/pm/rpm/rpm_pkg_ld.c?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list