[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

View file

@ -75,17 +75,8 @@ ROUTE_IMPL(RouteLogin, path, argp)
(void) path; (void) path;
loginRequest.user = NULL; memset(&loginRequest, 0, sizeof(LoginRequest));
loginRequest.address = NULL; memset(&userIdentifier, 0, sizeof(LoginRequestUserIdentifier));
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;
switch (HttpRequestMethodGet(args->context)) switch (HttpRequestMethodGet(args->context))
{ {