diff options
author | Ismo Puustinen <ismo.puustinen@intel.com> | 2013-04-12 17:38:12 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@intel.com> | 2013-04-25 16:55:58 +0300 |
commit | fd22c1a7f14a844f07ba00eda36581b5a4d41ffd (patch) | |
tree | c53640c7c01a92c6e7a7a9224c23e83dfa07c264 | |
parent | 738c93a49187f27f756024626a811331a4326e5c (diff) |
module: initialize module index to invalid value.next
m->init() was called while m->index was uninitialized, which was bad
style.
-rw-r--r-- | src/pulsecore/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c index 268d85d7..6f276bb7 100644 --- a/src/pulsecore/module.c +++ b/src/pulsecore/module.c @@ -64,6 +64,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) { m->argument = pa_xstrdup(argument); m->load_once = FALSE; m->proplist = pa_proplist_new(); + m->index = PA_IDXSET_INVALID; if (!(m->dl = lt_dlopenext(name))) { /* We used to print the error that is returned by lt_dlerror(), but |