Skip to content

Commit

Permalink
sample/signal-test: fix use of uninitialized variable
Browse files Browse the repository at this point in the history
signal_int is uninitialized in the !base error path.

Signed-off-by: David Disseldorp <[email protected]>
  • Loading branch information
ddiss committed Aug 20, 2019
1 parent 759573c commit a027629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/signal-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a027629

Please sign in to comment.