diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-04-24 00:10:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 00:10:43 +0200 |
commit | 0dbf856685ace6b9745c1a17ab589e9f838ed3df (patch) | |
tree | b57f6f5c4756ca88bf90107c63e89b7c1437fd88 /NorthstarDedicatedTest | |
parent | c2f9dd4695824a75e930db5eaea96f5df2f4ea27 (diff) | |
download | NorthstarLauncher-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')
-rw-r--r-- | NorthstarDedicatedTest/masterserver.cpp | 2 | ||||
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.cpp | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp index 3417b938..19253fdb 100644 --- a/NorthstarDedicatedTest/serverauthentication.cpp +++ b/NorthstarDedicatedTest/serverauthentication.cpp @@ -129,7 +129,7 @@ void ServerAuthenticationManager::StartPlayerAuthServer() return; } - AuthData newAuthData; + AuthData newAuthData {}; strncpy(newAuthData.uid, request.get_param_value("id").c_str(), sizeof(newAuthData.uid)); newAuthData.uid[sizeof(newAuthData.uid) - 1] = 0; |