From c244a93950ac9f29bac62fbc4be1ceee5d5e7a2b Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 16 Sep 2009 17:04:57 +0200 Subject: ELAPI: Fix dispatcher structure initialization --- common/elapi/elapi_log.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'common/elapi') diff --git a/common/elapi/elapi_log.c b/common/elapi/elapi_log.c index 291527bf..1d1bfa05 100644 --- a/common/elapi/elapi_log.c +++ b/common/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); -- cgit