1
1

Silence a warning about an address that can never be NULL - libevent needs to deal with the situation where the user may have compiled the code on a system where this function is present, but executes it on one where it isn't. Thus, a compile-time test isn't adequate.

Pushed upstream.

cmr:v1.7.3:reviewer=jsquyres

This commit was SVN r29201.
Этот коммит содержится в:
Ralph Castain 2013-09-18 02:03:01 +00:00
родитель 865a7028f8
Коммит 7de493fc02

Просмотреть файл

@ -70,8 +70,11 @@ ev_arc4random_buf(void *buf, size_t n)
* and fall back otherwise. (OSX does this using some linker
* trickery.)
*/
if (arc4random_buf != NULL) {
{
void* tptr = (void*)arc4random_buf;
if (tptr != NULL) {
return arc4random_buf(buf, n);
}
}
#endif
/* Make sure that we start out with b at a 4-byte alignment; plenty