From 677810ea957da2aa4694cb13cda13eba4ea7d5d4 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Tue, 12 Nov 2013 21:55:05 +0000 Subject: [PATCH 1/1] [FAST486] Don't return uninitialized variables. svn path=/branches/ntvdm/; revision=60967 --- lib/fast486/opgroups.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/fast486/opgroups.c b/lib/fast486/opgroups.c index a944e8d8939..a721c89bb36 100644 --- a/lib/fast486/opgroups.c +++ b/lib/fast486/opgroups.c @@ -167,7 +167,11 @@ Fast486RotateOperation(PFAST486_STATE State, Count &= 0x1F; /* If the count is zero, do nothing */ - if (Count == 0) goto SetFlags; + if (Count == 0) + { + Result = Value; + goto SetFlags; + } /* Check which operation is this */ switch (Operation) -- 2.17.1