projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66858a8
)
Always use curly braces for if and else.
author
Daniel Carl
<danielcarl@gmx.de>
Thu, 11 Oct 2018 22:10:48 +0000
(
00:10
+0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Thu, 11 Oct 2018 22:10:48 +0000
(
00:10
+0200)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
1d07b0b
..
5844ff7
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-365,8
+365,9
@@
char *util_file_set_content(const char *file, const char *contents)
struct stat st;
mode = 0600;
- if (stat(file, &st) == 0)
+ if (stat(file, &st) == 0)
{
mode = st.st_mode;
+ }
/* Create a temporary file. */
tmp_name = g_strconcat(file, ".XXXXXX", NULL);