]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 13 May 2015 10:24:50 +0000 (06:24 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sun, 24 May 2015 11:01:48 +0000 (07:01 -0400)
commit2d0243f4d6333ec7be8726bf905cec88f9b9d90c
treefa45b127f9d7c73bfc16406246523982ff471abf
parent6005bac45d651bb86eeae97752e6fc0e5e2cd122
storage: Resolve Coverity FORWARD_NULL

Coverity points out it's possible for one of the virCommand{Output|Error}*
API's to have not allocated 'output' and/or 'error' in which case the
strstr comparison will cause a NULL deref

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_disk.c