]> diplodocus.org Git - nmh/commit
uip/scansbr.c: Stop `scan -file' copying mailbox to /dev/null.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 29 May 2017 10:49:29 +0000 (11:49 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 29 May 2017 11:03:07 +0000 (12:03 +0100)
commit1564f19badd71bedb37fad0913a816a8873b7669
treea42308f3d6cced12334081a081ef9d5103b26d58
parent8beec5a149ff31d48971f869d99c7c99926ca790
uip/scansbr.c: Stop `scan -file' copying mailbox to /dev/null.

scan() was copying the mailbox to /dev/null when called for `scan -file
foo.mbox' because it used outnum being non-zero as the test of whether
to write instead of FILE pointer scnout being non-NULL.  By switching,
we can avoid the opening of /dev/null that was just to give scnout a
valid value for the needless fputs(3), etc.

Add comment explaining scan()'s outnum input parameter's three
functions: -1, 0, and positive.
uip/scansbr.c