]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: fix typo in libxl__hotplug_nic error checking
authorMatthew Daley <mattjd@gmail.com>
Wed, 18 Sep 2013 03:37:51 +0000 (15:37 +1200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Sep 2013 11:56:05 +0000 (12:56 +0100)
Coverity-ID: 1055945
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_linux.c

index 37815eb650701ba8e5592781002ed160d94df1aa..ea5d8c16782b81fd093805c6f3d1c1fa0b580559 100644 (file)
@@ -170,7 +170,7 @@ static int libxl__hotplug_nic(libxl__gc *gc, libxl__device *dev,
     }
 
     *env = get_hotplug_env(gc, script, dev);
-    if (!env) {
+    if (!*env) {
         rc = ERROR_FAIL;
         goto out;
     }