mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
Fix pa_parse_boolean() return value checking.
pa_parse_boolean() return value shouldn't be stored in pa_bool_t, because 1 and -1 need to be distinguished.
This commit is contained in:
parent
188d037150
commit
19c058dd08
3 changed files with 43 additions and 16 deletions
|
|
@ -1565,7 +1565,7 @@ static int pa_cli_command_log_level(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
|
|||
|
||||
static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, pa_bool_t *fail) {
|
||||
const char *m;
|
||||
pa_bool_t b;
|
||||
int b;
|
||||
|
||||
pa_core_assert_ref(c);
|
||||
pa_assert(t);
|
||||
|
|
@ -1589,7 +1589,7 @@ static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
|
|||
|
||||
static int pa_cli_command_log_time(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, pa_bool_t *fail) {
|
||||
const char *m;
|
||||
pa_bool_t b;
|
||||
int b;
|
||||
|
||||
pa_core_assert_ref(c);
|
||||
pa_assert(t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue