diff options
author | David <dbphillipsnz@gmail.com> | 2014-05-02 11:42:13 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-05-02 11:42:13 +1200 |
commit | b5d850670d406da072db4b5f77f76c1860aa4734 (patch) | |
tree | 3cd5ae35cc08c76f8fa56cc43eb5ee04dc60fc7a /config_file.c | |
parent | cfcf72f4173d37c4d4fd0d1d5802b3d689501424 (diff) | |
parent | 4bb267e8e416c95fddc59d3c954afc37d9a3f67a (diff) | |
download | paramano-b5d850670d406da072db4b5f77f76c1860aa4734.tar.xz |
Merge branch 'sudo-fix'
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) |