diff options
author | Vincent Untz <vuntz@gnome.org> | 2007-07-08 21:39:57 +0000 |
---|---|---|
committer | Vincent Untz <vuntz@gnome.org> | 2007-07-08 21:39:57 +0000 |
commit | 5052214fbc3702cbd9aa6911890b8bd155674fbd (patch) | |
tree | 833bf1c16bbd357b7dadc667716e9e68af626708 | |
parent | 0d4df0787ab377628575e5eff01bb16bc46300e3 (diff) |
pass the GError to g_key_file_load_from_file(), so we know when we can't
2007-07-08 Vincent Untz <vuntz@gnome.org>
* src/install.c: (process_one_file): pass the GError to
g_key_file_load_from_file(), so we know when we can't load a file and
print an error about this. Fix bug #11500.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/install.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2007-07-08 Vincent Untz <vuntz@gnome.org> + + * src/install.c: (process_one_file): pass the GError to + g_key_file_load_from_file(), so we know when we can't load a file and + print an error about this. Fix bug #11500. + 2007-06-30 Vincent Untz <vuntz@gnome.org> * misc/desktop-entry-mode.el: updated to desktop entry spec 1.0. diff --git a/src/install.c b/src/install.c index 5678d03..693940c 100644 --- a/src/install.c +++ b/src/install.c @@ -101,7 +101,7 @@ process_one_file (const char *filename, if (!g_key_file_load_from_file (kf, filename, G_KEY_FILE_KEEP_COMMENTS| G_KEY_FILE_KEEP_TRANSLATIONS, - NULL)) { + err)) { g_key_file_free (kf); return; } |