mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-03 04:45:46 +00:00
testutils: check return value of g_setenv
The function returns gboolean.
Compare against the FALSE value from GLib.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 2c33532423
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
665c5dfb71
commit
879e9db194
@ -836,7 +836,7 @@ virTestSetEnvPath(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (new_path &&
|
if (new_path &&
|
||||||
g_setenv("PATH", new_path, TRUE) < 0)
|
g_setenv("PATH", new_path, TRUE) == FALSE)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user