mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08: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>
This commit is contained in:
parent
759573c9e1
commit
a0276292a5
@ -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