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/masterserver.cpp | |
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/masterserver.cpp')
-rw-r--r-- | NorthstarDedicatedTest/masterserver.cpp | 2 |
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; |