diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-04-24 00:10:43 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-04-26 00:55:22 +0200 |
commit | f6dc6a51dd9769ea52f67e104816827cdb31466d (patch) | |
tree | 3b947a13e11ac79588ecd0ad8da4b25829e6c2b1 /NorthstarDedicatedTest/masterserver.cpp | |
parent | 94fe641b455053634d6ab927cca5661189f3eaa3 (diff) | |
download | NorthstarLauncher-f6dc6a51dd9769ea52f67e104816827cdb31466d.tar.gz NorthstarLauncher-f6dc6a51dd9769ea52f67e104816827cdb31466d.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 ab6388c3..9c719157 100644 --- a/NorthstarDedicatedTest/masterserver.cpp +++ b/NorthstarDedicatedTest/masterserver.cpp @@ -606,7 +606,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; |