From 55571f89998aca68058803b080c594e227b6cc29 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Fri, 12 Apr 2013 17:38:12 +0300 Subject: [PATCH] module: initialize module index to invalid value. m->init() was called while m->index was uninitialized, which was bad style. --- src/pulsecore/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c index 268d85d..6f276bb 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 -- 2.7.4