]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
wc(1): account for possibility of file == NULL
authorkevans <kevans@FreeBSD.org>
Wed, 5 Feb 2020 14:00:27 +0000 (14:00 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 5 Feb 2020 14:00:27 +0000 (14:00 +0000)
commit6f98eb6488c877a08ef749ae3015858b2fd7c797
tree384625a1e0bb7d4b84e8a507e2c14bf556e7b8c6
parent0b07d4a8ebae0e7801c1089e803961fc00920818
wc(1): account for possibility of file == NULL

file could reasonably be NULL here if we we're using stdin. Albeit less
likely in normal usage, one could actually hit either of these warnings on
stdin.

ubmitted by: sigsys@gmail.com
MFC after: 3 days
usr.bin/wc/wc.c