mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 04:28:05 +02: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"));
|
"found in search dirs"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output_file != NULL && fd > 0)
|
if (output_file != NULL && fd != -1)
|
||||||
*output_file = g_strdup (path);
|
*output_file = g_strdup (path);
|
||||||
|
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user