[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 12 Nov 2013 21:55:05 +0000 (21:55 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 12 Nov 2013 21:55:05 +0000 (21:55 +0000)
Don't return uninitialized variables.

svn path=/branches/ntvdm/; revision=60967

lib/fast486/opgroups.c

index a944e8d..a721c89 100644 (file)
@@ -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)