mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 21:56:35 +01:00
Use compound literals to zero out structs instead of memset
This is cleaner and much less prone to bugs
This commit is contained in:
@@ -73,7 +73,9 @@ static int check_file_signature(const unsigned char *signature, size_t size, FIL
|
||||
|
||||
static void avatar_clear(void)
|
||||
{
|
||||
memset(&Avatar, 0, sizeof(struct Avatar));
|
||||
Avatar = (struct Avatar) {
|
||||
0
|
||||
};
|
||||
}
|
||||
|
||||
/* Sends avatar to friendnum.
|
||||
|
||||
Reference in New Issue
Block a user