From edd5bec6617d600617b7925ce3e811a7c43502a5 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 26 Apr 2017 22:13:36 +0200 Subject: [PATCH] Fixed wrongs check of g_mkdir_with_parents #381. --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 8f1c2b4..b19aeaa 100644 --- a/src/util.c +++ b/src/util.c @@ -101,7 +101,7 @@ void util_cleanup(void) gboolean util_create_dir_if_not_exists(const char *dirpath) { - if (!g_mkdir_with_parents(dirpath, 0755)) { + if (g_mkdir_with_parents(dirpath, 0755) == -1) { g_critical("Could not create directory '%s': %s", dirpath, strerror(errno)); return FALSE; -- 2.20.1