[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] util: Avoid calling closedir(NULL)



Signed-off-by: Jiri Denemark <jdenemar redhat com>
---
 src/util/virutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virutil.c b/src/util/virutil.c
index 9c40317..3037293 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -1780,7 +1780,7 @@ virFindSCSIHostByPCI(const char *sysfs_prefix,
         virReportSystemError(errno,
                              _("Failed to opendir path '%s'"),
                              prefix);
-        goto cleanup;
+        return NULL;
     }
 
     while (virDirRead(dir, &entry, prefix) > 0) {
-- 
2.1.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]