diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c index 2035a03793..431a6bc756 100644 --- a/libao2/ao_alsa.c +++ b/libao2/ao_alsa.c @@ -112,7 +112,7 @@ static int control(int cmd, void *arg) char *test_mix_index; mix_name = strdup(mixer_channel); - if (test_mix_index = strchr(mix_name, ',')){ + if ((test_mix_index = strchr(mix_name, ','))){ *test_mix_index = 0; test_mix_index++; mix_index = strtol(test_mix_index, &test_mix_index, 0);