]> granicus.if.org Git - libevent/commit
Fix garbage value in socketpair util function, stdint?
authorMark Ellzey <socket@gmail.com>
Mon, 11 May 2015 16:06:01 +0000 (12:06 -0400)
committerMark Ellzey <socket@gmail.com>
Mon, 11 May 2015 16:06:01 +0000 (12:06 -0400)
commit043ae7481f4a73b0f48055a0260afa454f02d136
tree23677275df15aff328a6b4d1cb07ca694cc878b9
parentf1b3a1e00725666b5ff8f767e2ca40039122e501
Fix garbage value in socketpair util function, stdint?

* Fixed an issue with evutil_ersatz_socketpair_, listen_addr could all
  be compared against with agarbage values. So just memset it before
  using it anywhere.

* Nick might punch me in the face, but if we have stdint.h; (as in
  EVENT__HAVE_STDINT_H is defined), might as well use those instead of
  the manual [U]INT[X}_MAX/MIN muck in there now.
evutil.c
include/event2/util.h