mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
testglib: test_file_functions: don't close fd if it's -1
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666115 Reviewed-by: Matthias Clasen <mclasen@redhat.com>
This commit is contained in:
parent
fedc0cff51
commit
a0f5e89aed
@ -952,7 +952,8 @@ test_file_functions (void)
|
||||
else
|
||||
g_print ("g_file_open_tmp correctly returns error: %s\n", error->message);
|
||||
}
|
||||
close (fd);
|
||||
if (fd != -1)
|
||||
close (fd);
|
||||
g_clear_error (&error);
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user