]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't test for NULL when it is both unnecessary (the pointer is checked
authorColin Percival <cperciva@FreeBSD.org>
Mon, 21 May 2007 04:45:24 +0000 (04:45 +0000)
committerColin Percival <cperciva@FreeBSD.org>
Mon, 21 May 2007 04:45:24 +0000 (04:45 +0000)
commit3662c7b8ad876f4282378cfaae98efd6fcb79a46
treeef7129acfc1921e6d1376bd377e41c80d24e99c6
parent51bbfbd15c05012b547fd6d1a1438bb82a2e040b
Don't test for NULL when it is both unnecessary (the pointer is checked
against NULL when it is first allocated) and pointless (we've already
dereferenced the pointer several times).

Found by: Coverity Prevent(tm)
CID: 3204
lib/libarchive/archive_read_support_format_tar.c