summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-09-16 17:04:57 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-16 13:29:08 -0400
commit93cef69b10ec93fce6b95552677be4b8592ab028 (patch)
treeb07992c3353b913a594d3ad8399595cb2eadec4f
parentfcc3ffaa4a5fc983fea2fa248b8b85f336190847 (diff)
downloadding-libs-93cef69b10ec93fce6b95552677be4b8592ab028.tar.gz
ding-libs-93cef69b10ec93fce6b95552677be4b8592ab028.tar.xz
ding-libs-93cef69b10ec93fce6b95552677be4b8592ab028.zip
ELAPI: Fix dispatcher structure initialization
-rw-r--r--elapi/elapi_log.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/elapi/elapi_log.c b/elapi/elapi_log.c
index 291527b..1d1bfa0 100644
--- a/elapi/elapi_log.c
+++ b/elapi/elapi_log.c
@@ -172,16 +172,7 @@ int elapi_create_dispatcher_adv(struct elapi_dispatcher **dispatcher,
}
/* Clean memory - we need it to be able to destroy the dispatcher at any moment */
- /* FIXME - eventually remove the memset from here when the structure finalizes */
- /* 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 *));
- handle->ini_config = NULL;
- handle->target_list = NULL;
- handle->sink_list = NULL;
- handle->targets = NULL;
- handle->default_template = NULL;
+ memset(handle, 0, sizeof(struct elapi_dispatcher));
/* Save application name in the handle */
if (appname != NULL) handle->appname = strdup(appname);