fix a bogus assert
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Jan 2009 23:14:50 +0000 (00:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 29 Jan 2009 23:14:50 +0000 (00:14 +0100)
src/pulse/volume.c

index 4da133d..711c3a9 100644 (file)
@@ -505,7 +505,7 @@ pa_cvolume* pa_cvolume_scale(pa_cvolume *v, pa_volume_t max) {
     unsigned c;
     pa_volume_t t = 0;
 
-    pa_assert(c);
+    pa_assert(v);
 
     for (c = 0; c < v->channels; c++)
         if (v->values[c] > t)