summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2007-07-08 21:39:57 +0000
committerVincent Untz <vuntz@gnome.org>2007-07-08 21:39:57 +0000
commit5052214fbc3702cbd9aa6911890b8bd155674fbd (patch)
tree833bf1c16bbd357b7dadc667716e9e68af626708
parent0d4df0787ab377628575e5eff01bb16bc46300e3 (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--ChangeLog6
-rw-r--r--src/install.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7909bb4..7c7df05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}