[MOD] Use memset insted of putting NULL everywhere

This commit is contained in:
lda 2023-11-21 05:59:10 +01:00
parent 69b1013654
commit 680eacd60a
Signed by: lda
GPG Key ID: 6898757653ABE3E6
1 changed files with 2 additions and 11 deletions

View File

@ -75,17 +75,8 @@ ROUTE_IMPL(RouteLogin, path, argp)
(void) path;
loginRequest.user = NULL;
loginRequest.address = NULL;
loginRequest.token = NULL;
loginRequest.medium = NULL;
loginRequest.password = NULL;
loginRequest.device_id = NULL;
loginRequest.initial_device_display_name = NULL;
loginRequest.identifier = NULL;
userIdentifier.user = NULL;
userIdentifier.type = NULL;
memset(&loginRequest, 0, sizeof(LoginRequest));
memset(&userIdentifier, 0, sizeof(LoginRequestUserIdentifier));
switch (HttpRequestMethodGet(args->context))
{