changeset 17097:3473cbf126d7

fix ao_alsa.c:115: warning: suggest parentheses around assignment used as truth value
author rathann
date Mon, 05 Dec 2005 01:31:03 +0000
parents c7f6ba8fb63c
children 0b6c9d7387b4
files libao2/ao_alsa.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa.c	Mon Dec 05 01:30:31 2005 +0000
+++ b/libao2/ao_alsa.c	Mon Dec 05 01:31:03 2005 +0000
@@ -112,7 +112,7 @@
 	 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);