]> diplodocus.org Git - nmh/commit
anno: Stop segmentation violation on `-number 0'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 1 Nov 2016 00:05:42 +0000 (00:05 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 1 Nov 2016 00:18:36 +0000 (00:18 +0000)
commit171ad462ce7582196f91f93f91f99fc60a21189e
tree28f0c1d62711822856da39ed961a91f1602d4fed
parentf45a7fb59b6295345d10af89d3b1ac5e811f2cd9
anno: Stop segmentation violation on `-number 0'.

If atoi(3) returned zero, either because `0' was given or the number
could not be parsed, then the error message dereferenced an invalid
pointer.  Found when trying to increase coverage with check_exit.
uip/anno.c