[Scummvm-git-logs] scummvm master -> dd4869e6a032140b88f4fcf2ba788bd59aaff7a9

lephilousophe lephilousophe at users.noreply.github.com
Sun Feb 7 16:47:48 UTC 2021


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

Summary:
eef7551e98 AGS: Don't initialize arrays with strings
dd4869e6a0 AGS: Initialize plugin for end marker too


Commit: eef7551e9856ac152c457898460fdaaad945e947
    https://github.com/scummvm/scummvm/commit/eef7551e9856ac152c457898460fdaaad945e947
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-02-07T17:47:29+01:00

Commit Message:
AGS: Don't initialize arrays with strings

Old GCC don't like it

Changed paths:
    engines/ags/engine/globals.h


diff --git a/engines/ags/engine/globals.h b/engines/ags/engine/globals.h
index 0166ce215e..eaccbb7e17 100644
--- a/engines/ags/engine/globals.h
+++ b/engines/ags/engine/globals.h
@@ -143,9 +143,9 @@ public:
 	 */
 
 	bool _handledErrorInEditor = false;
-	char _return_to_roomedit[30] = "\0";
-	char _return_to_room[150] = "\0";
-	char _quit_message[256] = "\0";
+	char _return_to_roomedit[30] = { '\0' };
+	char _return_to_room[150] = { '\0' };
+	char _quit_message[256] = { '\0' };
 
 	 /**@}*/
 


Commit: dd4869e6a032140b88f4fcf2ba788bd59aaff7a9
    https://github.com/scummvm/scummvm/commit/dd4869e6a032140b88f4fcf2ba788bd59aaff7a9
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-02-07T17:47:29+01:00

Commit Message:
AGS: Initialize plugin for end marker too

Changed paths:
    engines/ags/detection_tables.h


diff --git a/engines/ags/detection_tables.h b/engines/ags/detection_tables.h
index 12b40541b6..d3062782b2 100644
--- a/engines/ags/detection_tables.h
+++ b/engines/ags/detection_tables.h
@@ -2617,7 +2617,7 @@ const AGSGameDescription GAME_DESCRIPTIONS[] = {
 	ENGLISH_ENTRY("zooreal", "zoo_real.exe", "3b7cceb3e4bdb031dc5d8f290936e94b", 24184795),
 	ENGLISH_ENTRY("zugzwang", "Zugzwang.exe", "6cddccb3744ec5c6af7c398fb7b3b11c", 17209702),
 
-	{ AD_TABLE_END_MARKER }
+	{ AD_TABLE_END_MARKER, nullptr }
 };
 
 /**




More information about the Scummvm-git-logs mailing list