projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a03255
)
Fixed wrongs check of g_mkdir_with_parents #381.
author
Daniel Carl
<danielcarl@gmx.de>
Wed, 26 Apr 2017 20:13:36 +0000
(22:13 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Wed, 26 Apr 2017 20:15:17 +0000
(22:15 +0200)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
8f1c2b4
..
b19aeaa
100644
(file)
--- 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;