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:
@ -164,7 +164,9 @@ bool init_call(Call *call)
|
||||
return false;
|
||||
}
|
||||
|
||||
memset(call, 0, sizeof(Call));
|
||||
*call = (struct Call) {
|
||||
0
|
||||
};
|
||||
|
||||
call->status = cs_Pending;
|
||||
|
||||
|
Reference in New Issue
Block a user