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;