Patchwork [04/14] Zero initialize timespec struct explicitly

login
register
mail settings
Submitter Jes Sorensen
Date Aug. 30, 2010, 3:59 p.m.
Message ID <1283183960-28404-5-git-send-email-Jes.Sorensen@redhat.com>
Download mbox | patch
Permalink /patch/63116/
State New
Headers show

Comments

Jes Sorensen - Aug. 30, 2010, 3:59 p.m.
From: Jes Sorensen <Jes.Sorensen@redhat.com>

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 linux-aio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/linux-aio.c b/linux-aio.c
index 68f4b3d..3240996 100644
--- a/linux-aio.c
+++ b/linux-aio.c
@@ -118,7 +118,7 @@  static void qemu_laio_completion_cb(void *opaque)
         struct io_event events[MAX_EVENTS];
         uint64_t val;
         ssize_t ret;
-        struct timespec ts = { 0 };
+        struct timespec ts = { 0, 0 };
         int nevents, i;
 
         do {