mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03: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 &&
|
||||
g_setenv("PATH", new_path, TRUE) < 0)
|
||||
g_setenv("PATH", new_path, TRUE) == FALSE)
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user