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;
|
(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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue