aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.cpp
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-04-24 00:10:43 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-04-26 00:55:22 +0200
commitf6dc6a51dd9769ea52f67e104816827cdb31466d (patch)
tree3b947a13e11ac79588ecd0ad8da4b25829e6c2b1 /NorthstarDedicatedTest/serverauthentication.cpp
parent94fe641b455053634d6ab927cca5661189f3eaa3 (diff)
downloadNorthstarLauncher-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/serverauthentication.cpp')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp
index 46fa6491..e89c4e92 100644
--- a/NorthstarDedicatedTest/serverauthentication.cpp
+++ b/NorthstarDedicatedTest/serverauthentication.cpp
@@ -113,7 +113,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;