Commit 5291190f authored by Owen W. Taylor's avatar Owen W. Taylor Committed by Matthias Clasen

g_file_make_directory_with_parents(): fix a corner case

If g_file_get_parent() unexpectedly failed, we could return
FALSE but with no error.
parent 732470a3
......@@ -3384,11 +3384,12 @@ g_file_make_directory_with_parents (GFile *file,
GFile *parent_file;
g_clear_error (&my_error);
parent_file = g_file_get_parent (work_file);
if (parent_file == NULL)
g_clear_error (&my_error);
result = g_file_make_directory (parent_file, cancellable, &my_error);
g_object_unref (work_file);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment