From efa71a4135a711d8ab79809e635de4091ccf6013 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Mon, 27 Feb 2012 12:56:00 -0500 Subject: [PATCH] Make -volume switch actually work (it always got overridden). As far as I can tell, this never worked. Found by the test suite! --- uip/forw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 { -- 1.7.10.4