diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-09-16 17:04:57 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-16 13:29:08 -0400 |
commit | c244a93950ac9f29bac62fbc4be1ceee5d5e7a2b (patch) | |
tree | cba355084e8a1e24dd40db59a090552f07feea68 /common/elapi | |
parent | ed615a8b7a3053f12b557bd73e4fb1d56f7d2c8e (diff) | |
download | sssd-c244a93950ac9f29bac62fbc4be1ceee5d5e7a2b.tar.gz sssd-c244a93950ac9f29bac62fbc4be1ceee5d5e7a2b.tar.bz2 sssd-c244a93950ac9f29bac62fbc4be1ceee5d5e7a2b.zip |
ELAPI: Fix dispatcher structure initialization
Diffstat (limited to 'common/elapi')
-rw-r--r-- | common/elapi/elapi_log.c | 11 |
1 files changed, 1 insertions, 10 deletions
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); |