]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
esx: Don't warn about an empty URI path
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 2 Jan 2010 12:07:29 +0000 (13:07 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 7 Jan 2010 00:38:19 +0000 (01:38 +0100)
src/esx/esx_driver.c

index 5cdadfd6ecef317e9c4409591c9ab116406036c6..30e21e0744aee6a6aead050a92d9272876281677 100644 (file)
@@ -293,7 +293,8 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
         return VIR_DRV_OPEN_DECLINED;
     }
 
-    if (conn->uri->path != NULL && STRNEQ(conn->uri->path, "/")) {
+    if (conn->uri->path != NULL && STRNEQ(conn->uri->path, "") &&
+        STRNEQ(conn->uri->path, "/")) {
         VIR_WARN("Ignoring unexpected path '%s' in URI", conn->uri->path);
     }