From: markus schnalke Date: Tue, 27 Mar 2012 11:58:45 +0000 (+0200) Subject: Make -volume switch actually work (it always got overridden). X-Git-Tag: mmh-thesis-end~141 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=8051c625ea98a42e6f8f0b4276babeeae49b339f;p=mmh 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. --- 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);