mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: fix typo in libxl__hotplug_nic error checking
Coverity-ID: 1055945 Signed-off-by: Matthew Daley <mattjd@gmail.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
2e979531e5
commit
6b2b15ead2
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||