mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gkeyfile: Fix FD validity test to be technically correct
The fd could be valid and zero. https://bugzilla.gnome.org/show_bug.cgi?id=760324
This commit is contained in:
parent
b6d1c128b3
commit
fc857073a0
@ -789,7 +789,7 @@ find_file_in_data_dirs (const gchar *file,
|
||||
"found in search dirs"));
|
||||
}
|
||||
|
||||
if (output_file != NULL && fd > 0)
|
||||
if (output_file != NULL && fd != -1)
|
||||
*output_file = g_strdup (path);
|
||||
|
||||
g_free (path);
|
||||
|
Loading…
Reference in New Issue
Block a user