wc: avoid NULL dereference on out-of-memory error
authorJim Meyering <meyering@redhat.com>
Wed, 2 Mar 2011 17:54:43 +0000 (18:54 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 3 Mar 2011 08:01:17 +0000 (09:01 +0100)
commit7cfd12c78e0be4c90f29c99ab383163aa1471504
treefedfcb74dc902d31a6f7d27bc2c76838ff10d244
parenta132e03507871f9506940d3cdf82faa072d861bf
wc: avoid NULL dereference on out-of-memory error

* src/wc.c (main): Diagnose failed argv_iter_init_* failure,
rather than falling through and dereferencing NULL.
Bug introduced by 2008-11-25 commit c2e56e0d,
"wc: read and process --files0-from= input a name at a time,".
* NEWS (Bug fixes): Mention it.
NEWS
src/wc.c