mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-04 18:18:56 +01:00
gfile: add g_return_if_fail to g_file_make_directory_with_parents()
This commit is contained in:
committed by
Matthias Clasen
parent
cd49c0973d
commit
d1f1389649
@@ -3404,6 +3404,8 @@ g_file_make_directory_with_parents (GFile *file,
|
|||||||
GList *list = NULL, *l;
|
GList *list = NULL, *l;
|
||||||
GError *my_error = NULL;
|
GError *my_error = NULL;
|
||||||
|
|
||||||
|
g_return_val_if_fail (G_IS_FILE (file), FALSE);
|
||||||
|
|
||||||
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user