From: Ken Hornstein Date: Mon, 27 Feb 2012 17:56:00 +0000 (-0500) Subject: Make -volume switch actually work (it always got overridden). As far X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=efa71a4135a711d8ab79809e635de4091ccf6013;p=mmh Make -volume switch actually work (it always got overridden). As far as I can tell, this never worked. Found by the test suite! --- diff --git a/uip/forw.c b/uip/forw.c index 3c3e4f6..22ecc00 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -430,10 +430,11 @@ try_it_again: issue = 0; issue++; } - if (volume == 0) + if (volume == 0) { snprintf (buf, sizeof(buf), VFORMAT, digest); - if ((cp = context_find (buf)) == NULL || (volume = atoi (cp)) <= 0) - volume = 1; + if ((cp = context_find (buf)) == NULL || (volume = atoi (cp)) <= 0) + volume = 1; + } if (!form) form = digestcomps; } else {