From 7d876eb100d86ad3cbeef4bffc07370a5f101966 Mon Sep 17 00:00:00 2001 From: seanc Date: Thu, 11 Jul 2019 23:54:50 +0000 Subject: [PATCH] usr.sbin/bhyve: send an initialized value to wake up blocking kqueue This is a no-op initialization because nothing reads this value. "This wasn't wrong previously, but this is more correct now." -imp Coverity CID: 1194307 Approved by: markj, imp, scottl Differential Revision: https://reviews.freebsd.org/D20921 --- usr.sbin/bhyve/mevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/mevent.c b/usr.sbin/bhyve/mevent.c index 9c781676643..c40def6176d 100644 --- a/usr.sbin/bhyve/mevent.c +++ b/usr.sbin/bhyve/mevent.c @@ -119,7 +119,7 @@ mevent_pipe_read(int fd, enum ev_type type, void *param) static void mevent_notify(void) { - char c; + char c = '\0'; /* * If calling from outside the i/o thread, write a byte on the -- 2.45.0