[ostree] core: Fix regression in previous commit
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Fix regression in previous commit
- Date: Fri, 12 Oct 2012 19:26:13 +0000 (UTC)
commit b4d408f48321f36d9382d77e7e12db4dacf0116a
Author: Colin Walters <walters verbum org>
Date: Fri Oct 12 15:25:25 2012 -0400
core: Fix regression in previous commit
src/libotutil/ot-gio-utils.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/libotutil/ot-gio-utils.c b/src/libotutil/ot-gio-utils.c
index 1e98516..bf3743d 100644
--- a/src/libotutil/ot-gio-utils.c
+++ b/src/libotutil/ot-gio-utils.c
@@ -60,7 +60,10 @@ ot_gfile_ensure_directory (GFile *dir,
if (with_parents)
{
ot_lobj GFile *parent = g_file_get_parent (dir);
- ret = ot_gfile_ensure_directory (parent, TRUE, &temp_error);
+ if (parent)
+ ret = ot_gfile_ensure_directory (parent, TRUE, &temp_error);
+ else
+ ret = TRUE;
}
else
ret = g_file_make_directory (dir, NULL, &temp_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]