aboutsummaryrefslogtreecommitdiff
path: root/config_file.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-05-02 11:22:22 +1200
committerDavid <dbphillipsnz@gmail.com>2014-05-02 11:22:22 +1200
commit91b78cb1f60430a9f2e87c27af26c883f95de754 (patch)
tree23814bc764a8a1fa5d910974c5b6b3639411e5bd /config_file.c
parent139ee2e0ef4eb42fe0f17e7bf1bfedd7812d27a5 (diff)
downloadparamano-91b78cb1f60430a9f2e87c27af26c883f95de754.tar.xz
Done
Diffstat (limited to 'config_file.c')
-rw-r--r--config_file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/config_file.c b/config_file.c
index 602eb92..a62f094 100644
--- a/config_file.c
+++ b/config_file.c
@@ -28,11 +28,13 @@ gboolean config_open(struct config_file* config_file)
debug("Creating new config_file->key_file\n");
config_file->key_file = g_key_file_new();
-
- return g_key_file_load_from_file( config_file->key_file,
+ gboolean success = g_key_file_load_from_file(
+ config_file->key_file,
config_file->file_name,
G_KEY_FILE_NONE,
NULL);
+ debug("Returning %s\n",success? "TRUE" : "FALSE");
+ return success;
}
void config_close(struct config_file* config_file)