]> xenbits.xensource.com Git - libvirt.git/commit
Do not call closedir with NULL argument
authorJán Tomko <jtomko@redhat.com>
Mon, 23 Jun 2014 06:58:27 +0000 (08:58 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 23 Jun 2014 12:16:23 +0000 (14:16 +0200)
commit10af0a19736aa200170eec52a1e1befa73885a6c
tree0a6d60776cc19759ffac837136d4415066af0a02
parent9a2e523eba4ce1394cac653b3bd179eb7f0cb164
Do not call closedir with NULL argument

Only three other callers possibly call closedir on a NULL argument.
Even though these probably won't be used on FreeBSD where this crashes,
let's be nice and only call closedir on an actual directory stream.
src/parallels/parallels_storage.c
src/util/virscsi.c