mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +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: 2c3353242337bb50fe5abc9454fd5fc98236d4ef 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…
x
Reference in New Issue
Block a user