Commit 59252538 authored by Adam Jackson's avatar Adam Jackson 🥃

dix: Fix undefined memset in _dixInitScreenPrivates

Again, memset(0, ...) is undefined.
parent f44ac101
......@@ -684,7 +684,8 @@ _dixInitScreenPrivates(ScreenPtr pScreen, PrivatePtr *privates, void *addr, DevP
if (privates_size == 0)
addr = 0;
*privates = addr;
memset(addr, '\0', privates_size);
if (addr)
memset(addr, '\0', privates_size);
}
void *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment