]> xenbits.xensource.com Git - libvirt.git/commit
tests: avoid null pointer dereference
authorEric Blake <eblake@redhat.com>
Tue, 3 May 2011 16:37:13 +0000 (10:37 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 3 May 2011 16:50:56 +0000 (10:50 -0600)
commit4b4e8b57c2a652dd7e19c04d0b06c7a7e11e6f0c
tree8b2fa1d08fafaee077dc72662384d428d51fee35
parent6e177fa1b6fee70a267cd1f6cb748f94d8d8c9c8
tests: avoid null pointer dereference

Unlikely to hit in real life, but clang noticed it.

* tests/commandtest.c (checkoutput, test4, test18): Avoid
unlink(NULL) on OOM.
tests/commandtest.c