module: initialize module index to invalid value.

m->init() was called while m->index was uninitialized, which was bad
style.
This commit is contained in:
Ismo Puustinen 2013-04-12 17:38:12 +03:00 committed by Arun Raghavan
parent 8336078afa
commit 55571f8999

View file

@ -64,6 +64,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) {
m->argument = pa_xstrdup(argument); m->argument = pa_xstrdup(argument);
m->load_once = FALSE; m->load_once = FALSE;
m->proplist = pa_proplist_new(); m->proplist = pa_proplist_new();
m->index = PA_IDXSET_INVALID;
if (!(m->dl = lt_dlopenext(name))) { if (!(m->dl = lt_dlopenext(name))) {
/* We used to print the error that is returned by lt_dlerror(), but /* We used to print the error that is returned by lt_dlerror(), but