]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testutils: Adapt to highly unlikely case
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Mar 2016 13:57:42 +0000 (14:57 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Mar 2016 16:35:14 +0000 (17:35 +0100)
commit98354e362c94ab3053db45aad0c8e4ef352fcdee
treeb49fc273e2a52c287edc4b63bdb2dabc6ee58a18
parent8c50daa1e1a49d6623b61222f783dc3e1b72372d
testutils: Adapt to highly unlikely case

Coverity pointed out that getenv("PATH") may return NULL. Well,
we check for that in virFindFileInPath() too. If this happens, we
will pass NULL into strstr(). Ouch.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/testutils.c