mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 03:44:22 -04:00
sample/signal-test: fix use of uninitialized variable
signal_int is uninitialized in the !base error path. Signed-off-by: David Disseldorp <ddiss@samba.org> (cherry picked from commit a0276292a5e783c30643992897c7597f0db2cc96)
This commit is contained in:
parent
ec52e6af2f
commit
f9d7ac0de8
@ -44,7 +44,7 @@ signal_cb(evutil_socket_t fd, short event, void *arg)
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
struct event *signal_int;
|
||||
struct event *signal_int = NULL;
|
||||
struct event_base* base;
|
||||
int ret = 0;
|
||||
#ifdef _WIN32
|
||||
|
Loading…
x
Reference in New Issue
Block a user