aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.cpp
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-04-24 00:10:43 +0200
committerGitHub <noreply@github.com>2022-04-24 00:10:43 +0200
commit0dbf856685ace6b9745c1a17ab589e9f838ed3df (patch)
treeb57f6f5c4756ca88bf90107c63e89b7c1437fd88 /NorthstarDedicatedTest/masterserver.cpp
parentc2f9dd4695824a75e930db5eaea96f5df2f4ea27 (diff)
downloadNorthstarLauncher-0dbf856685ace6b9745c1a17ab589e9f838ed3df.tar.gz
NorthstarLauncher-0dbf856685ace6b9745c1a17ab589e9f838ed3df.zip
Fix debug builds (#150)
Properly initializes AuthData structs where used. This does not get done automatically in debug mode because c++ is weird like that
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index 8cb4f9bb..38268e60 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -627,7 +627,7 @@ void MasterServerManager::AuthenticateWithOwnServer(char* uid, char* playerToken
goto REQUEST_END_CLEANUP;
}
- AuthData newAuthData;
+ AuthData newAuthData {};
strncpy(newAuthData.uid, authInfoJson["id"].GetString(), sizeof(newAuthData.uid));
newAuthData.uid[sizeof(newAuthData.uid) - 1] = 0;