1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-02 09:26:45 +02:00

Use compound literals to zero out structs instead of memset

This commit is contained in:
zugz (tox)
2020-11-14 00:00:00 +00:00
parent 4581dee4fc
commit ba5ded9bc2
2 changed files with 7 additions and 2 deletions

View File

@ -164,7 +164,9 @@ bool init_call(Call *call)
return false;
}
memset(call, 0, sizeof(Call));
*call = (struct Call) {
0
};
call->status = cs_Pending;