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:
David Disseldorp 2019-08-21 01:00:07 +02:00
parent 759573c9e1
commit a0276292a5

View File

@ -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