gfile: add g_return_if_fail to g_file_make_directory_with_parents()

This commit is contained in:
Paolo Borelli 2012-05-15 17:38:44 +02:00
parent 5a57144d57
commit 2a4235d0f3

View File

@ -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;