From: Sasha Levin Subject: [PATCH 1/2] kvm tools: Zero out event before calling epoll_ctl() Date: Tue, 6 Dec 2011 14:15:30 +0200 Message-ID: <1323173731-7651-1-git-send-email-levinsasha928@gmail.com> Cc: mingo@elte.hu, gorcunov@gmail.com, asias.hejun@gmail.com, kvm@vger.kernel.org, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-ee0-f46.google.com ([74.125.83.46]:52978 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933368Ab1LFMPy (ORCPT ); Tue, 6 Dec 2011 07:15:54 -0500 Received: by eeaq14 with SMTP id q14so2808813eea.19 for ; Tue, 06 Dec 2011 04:15:53 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: Zero out struct epoll_event before calling epoll_ctl(). This isn't really required, but is done to avoid warnings. Signed-off-by: Sasha Levin --- tools/kvm/kvm-ipc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/kvm-ipc.c b/tools/kvm/kvm-ipc.c index 40ab457..68c2565 100644 --- a/tools/kvm/kvm-ipc.c +++ b/tools/kvm/kvm-ipc.c @@ -132,7 +132,7 @@ static void *kvm_ipc__thread(void *param) int kvm_ipc__start(int sock) { - struct epoll_event ev; + struct epoll_event ev = {0}; server_fd = sock; -- 1.7.8