[Scummvm-cvs-logs] scummvm master -> cc82bacc775731dab91c036240b31d6c2b7b44fe

eriktorbjorn eriktorbjorn at telia.com
Wed Apr 13 22:37:22 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cc82bacc77 TSAGE: Always initialise the event in getEvent()


Commit: cc82bacc775731dab91c036240b31d6c2b7b44fe
    https://github.com/scummvm/scummvm/commit/cc82bacc775731dab91c036240b31d6c2b7b44fe
Author: eriktorbjorn (eriktorbjorn at users.sourceforge.net)
Date: 2011-04-13T13:33:41-07:00

Commit Message:
TSAGE: Always initialise the event in getEvent()

This fixes Valgrind warnings when getEvent() is called when there are
no pending events at all.

Changed paths:
    engines/tsage/events.cpp



diff --git a/engines/tsage/events.cpp b/engines/tsage/events.cpp
index 4d2a1cc..fa5ecdc 100644
--- a/engines/tsage/events.cpp
+++ b/engines/tsage/events.cpp
@@ -127,6 +127,9 @@ bool EventsClass::getEvent(Event &evt, int eventMask) {
 			return true;
 	}
 
+	evt.handled = false;
+	evt.eventType = EVENT_NONE;
+
 	return false;
 }
 






More information about the Scummvm-git-logs mailing list