diff options
author | David <dbphillipsnz@gmail.com> | 2014-05-02 11:22:22 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-06-06 20:28:46 +1200 |
commit | 8913f121822af36e9e099c1b2d8e64f7dab0d863 (patch) | |
tree | 843457828d319e26a12a58eae5e47b113dfc4813 /config_file.c | |
parent | fe07b9907dbc5191e7a78c2dde7f5bbed4cfacfa (diff) | |
download | paramano-8913f121822af36e9e099c1b2d8e64f7dab0d863.tar.xz |
Done
Diffstat (limited to 'config_file.c')
-rw-r--r-- | config_file.c | 6 |
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) |