From: Daniel Carl <danielcarl@gmx.de>
Date: Thu, 11 Oct 2018 22:10:48 +0000 (+0200)
Subject: Always use curly braces for if and else.
X-Git-Url: https://git.owens.tech/assets/wrapped.html/assets/wrapped.html/git?a=commitdiff_plain;h=ea1334084a217ecfe672913a04b91bfb41e2ece7;p=vimb.git

Always use curly braces for if and else.
---

diff --git a/src/util.c b/src/util.c
index 1d07b0b..5844ff7 100644
--- 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);