summaryrefslogtreecommitdiff
path: root/src/trg-prefs.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-16 07:22:52 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-16 07:22:52 +0000
commit1d03f2cb43dfafbf42b6beb1f7d0335a9448afbd (patch)
treea9c36d8ec783aca3be5d71c3d1c9b28e9ecc0ab4 /src/trg-prefs.c
parent56f42405eb79a21a068414913ea705a5c7ea0d18 (diff)
issue 104
Diffstat (limited to 'src/trg-prefs.c')
-rw-r--r--src/trg-prefs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trg-prefs.c b/src/trg-prefs.c
index 862b21d..be9d4e5 100644
--- a/src/trg-prefs.c
+++ b/src/trg-prefs.c
@@ -340,11 +340,11 @@ gboolean trg_prefs_save(TrgPrefs *p) {
json_generator_set_root(gen, priv->user);
success = json_generator_to_file(gen, priv->file, NULL);
- if (!success) {
+
+ if (!success)
g_error("Problem writing configuration file (permissions?) to: %s", priv->file);
- } else if (isNew ) {
+ else if (isNew)
g_chmod(priv->file, 384);
- }
g_object_unref(gen);