mirror of
https://github.com/tmux/tmux.git
synced 2025-01-08 08:58:47 +00:00
Accept NULL pointer.
This commit is contained in:
parent
d720a1487b
commit
9583878a7b
@ -24,6 +24,8 @@
|
|||||||
void
|
void
|
||||||
freezero(void *ptr, size_t size)
|
freezero(void *ptr, size_t size)
|
||||||
{
|
{
|
||||||
|
if (ptr != NULL) {
|
||||||
memset(ptr, 0, size);
|
memset(ptr, 0, size);
|
||||||
free(ptr);
|
free(ptr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user