From ea1334084a217ecfe672913a04b91bfb41e2ece7 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 12 Oct 2018 00:10:48 +0200 Subject: [PATCH] Always use curly braces for if and else. --- src/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1