summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/module.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-09 17:04:41 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-09 17:04:41 +0200
commitb21840407a844d537de0a750a0d8afb948932db2 (patch)
tree26dd7754c869f3b628d269f09741e3caf303e3c7 /src/pulsecore/module.c
parent72f520f93c576facf8a49af28b764e1be8ee4ad5 (diff)
fix bad memory access
Diffstat (limited to 'src/pulsecore/module.c')
-rw-r--r--src/pulsecore/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c
index cf337465..29003af8 100644
--- a/src/pulsecore/module.c
+++ b/src/pulsecore/module.c
@@ -190,7 +190,7 @@ void pa_module_unload_by_index(pa_core *c, uint32_t idx, pa_bool_t force) {
pa_assert(c);
pa_assert(idx != PA_IDXSET_INVALID);
- if (m->core->disallow_module_loading && !force)
+ if (c->disallow_module_loading && !force)
return;
if (!(m = pa_idxset_remove_by_index(c->modules, idx)))