summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/conf-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/conf-parser.c')
-rw-r--r--src/pulsecore/conf-parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pulsecore/conf-parser.c b/src/pulsecore/conf-parser.c
index 0e0ba95a..12ea49c2 100644
--- a/src/pulsecore/conf-parser.c
+++ b/src/pulsecore/conf-parser.c
@@ -169,7 +169,8 @@ int pa_config_parse_int(const char *filename, unsigned line, const char *lvalue,
}
int pa_config_parse_bool(const char *filename, unsigned line, const char *lvalue, const char *rvalue, void *data, PA_GCC_UNUSED void *userdata) {
- int *b = data, k;
+ int k;
+ pa_bool_t *b = data;
pa_assert(filename);
pa_assert(lvalue);
@@ -181,7 +182,7 @@ int pa_config_parse_bool(const char *filename, unsigned line, const char *lvalue
return -1;
}
- *b = k;
+ *b = !!k;
return 0;
}