From f0182121f79685063edb50c9647e4f6f40bd0ba6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 13 May 2009 18:12:17 +0000 Subject: Fix some variable may be used uninitialized warnings. svn-id: r40528 --- engines/sky/text.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/sky') diff --git a/engines/sky/text.cpp b/engines/sky/text.cpp index 64a72a53aa..820f1827c2 100644 --- a/engines/sky/text.cpp +++ b/engines/sky/text.cpp @@ -339,6 +339,7 @@ DisplayedText Text::displayText(char *textPtr, uint8 *dest, bool centre, uint16 } while (textChar >= 10); DisplayedText ret; + memset(&ret, 0, sizeof(ret)); ret.textData = dest; ret.textWidth = dtLastWidth; return ret; -- cgit v1.2.3