[planetblupi] 28/61: Initialize the struct
Didier Raboud
odyx at moszumanska.debian.org
Thu Nov 2 19:24:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository planetblupi.
commit e8f3fc7e3706ee14996cd70ded0e36e03cd69d61
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date: Mon Oct 23 19:29:23 2017 +0200
Initialize the struct
---
src/event.cxx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/event.cxx b/src/event.cxx
index 1e54762..50d40c7 100644
--- a/src/event.cxx
+++ b/src/event.cxx
@@ -4564,6 +4564,8 @@ CEvent::ReadInfo ()
if (file == nullptr)
goto error;
+ SDL_memset (&info, 0, sizeof (info));
+
nb = fread (&info, sizeof (DescInfo), 1, file);
if (nb < 1)
goto error;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/planetblupi.git
More information about the Pkg-games-commits
mailing list