mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 09:15:34 -04:00
Correctly check for arc4random_buf
Apparently it's necssary to do an explicit comparison with NULL here. This also gets rid of a compile warning
This commit is contained in:
parent
bff5f94073
commit
fcec3e80c4
@ -70,7 +70,7 @@ ev_arc4random_buf(void *buf, size_t n)
|
||||
* and fall back otherwise. (OSX does this using some linker
|
||||
* trickery.)
|
||||
*/
|
||||
if (arc4random_buf) {
|
||||
if (arc4random_buf != NULL) {
|
||||
return arc4random_buf(buf, n);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user