Make -volume switch actually work (it always got overridden). As far
authorKen Hornstein <kenh@pobox.com>
Mon, 27 Feb 2012 17:56:00 +0000 (12:56 -0500)
committerKen Hornstein <kenh@pobox.com>
Mon, 27 Feb 2012 17:56:00 +0000 (12:56 -0500)
as I can tell, this never worked.  Found by the test suite!

uip/forw.c

index 3c3e4f6..22ecc00 100644 (file)
@@ -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 {