]> Zhao Yanbai Git Server - minix.git/commitdiff
libchardriver: resolve Coverity warnings
authorDavid van Moolenbroek <david@minix3.org>
Fri, 27 Jul 2012 15:02:12 +0000 (15:02 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 30 Jul 2012 12:10:13 +0000 (12:10 +0000)
lib/libchardriver/chardriver.c

index a3db9a00b6be795b82052c0bb66eeed81df3e83b..13fa620b071a2114be7b23854214a217e32a9991 100644 (file)
@@ -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;