>From 0f79e017e1a7f0bd57f1bf81f72bfae542469bed Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Wed, 16 Sep 2009 17:04:57 +0200
Subject: [PATCH] ELAPI: Fix dispatcher structure initialization

---
 common/elapi/elapi_log.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/elapi/elapi_log.c b/common/elapi/elapi_log.c
index 291527b..58ba727 100644
--- a/common/elapi/elapi_log.c
+++ b/common/elapi/elapi_log.c
@@ -176,12 +176,13 @@ int elapi_create_dispatcher_adv(struct elapi_dispatcher **dispatcher,
     /* Valgrind requires explicit initialization of the structure member, otherwise
      * it complains about jump or move based on the uninitialized variable.
      */
-    memset(handle, 0, sizeof(struct elapi_dispatcher *));
+    memset(handle, 0, sizeof(struct elapi_dispatcher));
     handle->ini_config = NULL;
     handle->target_list = NULL;
     handle->sink_list = NULL;
     handle->targets = NULL;
     handle->default_template = NULL;
+    handle->async_ctx = NULL;
 
     /* Save application name in the handle */
     if (appname != NULL) handle->appname = strdup(appname);
-- 
1.6.2.5

