shithub: sox

Download patch

ref: 537a028ea85b2f587a4e556b4520244e26128f8b
parent: b5fcf67f21202b555767c0b3cf9a8e20e2adc3f5
author: rrt <rrt>
date: Sat Nov 25 02:21:11 EST 2006

Fix bad use of ternary operator

--- a/src/sox.c
+++ b/src/sox.c
@@ -238,7 +238,7 @@
         input_count = file_count;
 
     /* Make sure we got at least the required # of input filenames */
-    if (input_count < soxmix ? 2 : 1)
+    if (input_count < (soxmix ? 2 : 1))
         usage("Not enough input or output filenames specified");
 
     for (i = 0; i < input_count; i++)