From: David van Moolenbroek Date: Fri, 27 Jul 2012 15:02:12 +0000 (+0000) Subject: libchardriver: resolve Coverity warnings X-Git-Tag: v3.2.1~422 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=0b30c0a1bb084926c5f7da4b5c88b8d77cffd479;p=minix.git libchardriver: resolve Coverity warnings --- diff --git a/lib/libchardriver/chardriver.c b/lib/libchardriver/chardriver.c index a3db9a00b..13fa620b0 100644 --- a/lib/libchardriver/chardriver.c +++ b/lib/libchardriver/chardriver.c @@ -131,6 +131,8 @@ static void async_reply(message *mess, int r) if (r == ERESTART) return; + memset(&reply_mess, 0, sizeof(reply_mess)); + switch (mess->m_type) { case DEV_OPEN: reply_mess.m_type = DEV_OPEN_REPL;