From 8051c625ea98a42e6f8f0b4276babeeae49b339f Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 13:58:45 +0200 Subject: [PATCH] Make -volume switch actually work (it always got overridden). As far as I can tell, this never worked. Found by the nmh test suite! Pulled in from nmh. Thanks to Ken Hornstein. --- uip/forw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/uip/forw.c b/uip/forw.c index be1242b..140136a 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -226,11 +226,12 @@ main(int argc, char **argv) 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; in = build_form(form, digest, volume, issue); -- 1.7.10.4