[Scummvm-git-logs] scummvm master -> 086ab443c015274a2aceca3ef5c943ebd3aff792

bgK bastien.bouclet at gmail.com
Sun Apr 22 08:31:59 CEST 2018


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:
086ab443c0 MOHAWK: LB: Mark a switch fall-trough as intentional


Commit: 086ab443c015274a2aceca3ef5c943ebd3aff792
    https://github.com/scummvm/scummvm/commit/086ab443c015274a2aceca3ef5c943ebd3aff792
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2018-04-22T08:30:08+02:00

Commit Message:
MOHAWK: LB: Mark a switch fall-trough as intentional

Without the fall-through, the function would unconditionally dereference
an uninitialized pointer.

Changed paths:
    engines/mohawk/livingbooks.cpp


diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 95b4722..b9e54e4 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -837,6 +837,7 @@ void LBPage::loadBITL(uint16 resourceId) {
 			break;
 		default:
 			warning("Unknown item type %04x", type);
+			// fall through
 		case 3: // often used for buttons
 			res = new LBItem(_vm, this, rect);
 			break;





More information about the Scummvm-git-logs mailing list