[Scummvm-git-logs] scummvm master -> 9cad1778b801a62d917af0d3b048a5e045db9105

LittleToonCat noreply at scummvm.org
Wed Oct 18 03:08:58 UTC 2023


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:
9cad1778b8 HE SCUMM: Initialize all members of Session struct. PVS-Studio V730


Commit: 9cad1778b801a62d917af0d3b048a5e045db9105
    https://github.com/scummvm/scummvm/commit/9cad1778b801a62d917af0d3b048a5e045db9105
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-10-18T00:08:47-03:00

Commit Message:
HE SCUMM: Initialize all members of Session struct. PVS-Studio V730

Changed paths:
    engines/scumm/he/net/net_main.h


diff --git a/engines/scumm/he/net/net_main.h b/engines/scumm/he/net/net_main.h
index 7433feaf122..6b4939b187a 100644
--- a/engines/scumm/he/net/net_main.h
+++ b/engines/scumm/he/net/net_main.h
@@ -53,10 +53,10 @@ private:
 		bool local = false; ///< Indicates if session is found over LAN.
 		int id = -1;
 		Common::String host;
-		int port;
+		int port = 0;
 		Common::String name;
-		int players;
-		uint32 timestamp;
+		int players = 0;
+		uint32 timestamp = 0;
 	};
 	/**
 	 * Converts a formatted string into an Address object.




More information about the Scummvm-git-logs mailing list