From 42977f8284ca9c384e6693d7ca5e4dcc81877899 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Mon, 24 Aug 2015 14:46:45 +0200 Subject: [PATCH] cfg/cfg: Fix a nix (add brackets) --- core/cfg/cfg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/cfg/cfg.cpp b/core/cfg/cfg.cpp index b7a00d3c0..03a524c14 100644 --- a/core/cfg/cfg.cpp +++ b/core/cfg/cfg.cpp @@ -18,7 +18,9 @@ void savecfgf() { FILE* cfgfile = fopen(cfgPath.c_str(),"wt"); if (!cfgfile) + { printf("Error : Unable to open file for saving \n"); + } else { cfgdb.save(cfgfile);