]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: file: Use more obvious logic in virFindFileInPath
authorPeter Krempa <pkrempa@redhat.com>
Thu, 14 Nov 2019 09:16:54 +0000 (10:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 14 Nov 2019 14:50:43 +0000 (15:50 +0100)
commit4bb2c51a9cf16a82dce92434d64f8d2494435122
treec8b7154625cf65790b32b03f83293bfe39ec11a7
parent6eac0c54365f45ce69f3928afeb7b7362545f5d2
util: file: Use more obvious logic in virFindFileInPath

Make it more obvious that the function will return NULL if the file is
not executable and stop reusing variables.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virfile.c