forked from Telodendria/Telodendria
[MOD] Use memset insted of putting NULL everywhere
This commit is contained in:
parent
69b1013654
commit
680eacd60a
1 changed files with 2 additions and 11 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue