Author: seanc (ports committer)
Date: Thu Jul 11 23:54:50 2019
New Revision: 349925
URL: https://svnweb.freebsd.org/changeset/base/349925

Log:
  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

Modified:
  head/usr.sbin/bhyve/mevent.c

Modified: head/usr.sbin/bhyve/mevent.c
==============================================================================
--- head/usr.sbin/bhyve/mevent.c        Thu Jul 11 22:06:59 2019        
(r349924)
+++ head/usr.sbin/bhyve/mevent.c        Thu Jul 11 23:54:50 2019        
(r349925)
@@ -119,7 +119,7 @@ mevent_pipe_read(int fd, enum ev_type type, void *para
 static void
 mevent_notify(void)
 {
-       char c;
+       char c = '\0';
        
        /*
         * If calling from outside the i/o thread, write a byte on the
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to