test-closed: fix -Werror=maybe-uninitialized

Follow-up for: https://github.com/libevent/libevent/pull/1680
This commit is contained in:
Azat Khuzhin 2024-07-08 10:15:29 +02:00
parent 272bd7ddf0
commit 66428fb969

View File

@ -72,9 +72,9 @@ closed_cb(evutil_socket_t fd, short event, void *arg)
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
struct event_base *base; struct event_base *base = NULL;
struct event *ev = NULL;
struct event_config *cfg; struct event_config *cfg;
struct event *ev;
const char *test = "test string"; const char *test = "test string";
evutil_socket_t pair[2]; evutil_socket_t pair[2];