[ioquake3] 70/136: Fully initialize ManifestItems (rollback, etc, was uninitialized before!).

Simon McVittie smcv at debian.org
Thu Jun 15 09:09:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit 8cf088ae276a7baa858e58eff78d6f72e368b8b0
Author: Ryan C. Gordon <icculus at icculus.org>
Date:   Thu Jun 1 17:17:25 2017 -0400

    Fully initialize ManifestItems (rollback, etc, was uninitialized before!).
---
 code/autoupdater/autoupdater.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/autoupdater/autoupdater.c b/code/autoupdater/autoupdater.c
index cf1dee5..2576a71 100644
--- a/code/autoupdater/autoupdater.c
+++ b/code/autoupdater/autoupdater.c
@@ -399,7 +399,7 @@ static void parseManifest(const char *fname)
         if (!item) {
             infof("Next manifest item: %s", buf);
 
-            item = (ManifestItem *) malloc(sizeof (ManifestItem));
+            item = (ManifestItem *) calloc(1, sizeof (ManifestItem));
             if (!item) {
                 outOfMemory();
             }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list