diff options
author | Ted Gould <ted@gould.cx> | 2010-08-11 09:07:42 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-11 09:07:42 -0500 |
commit | 3e415d534a762f91df41222d473354f1062bd17d (patch) | |
tree | d3e89aa6d9bdfc94b7e00ee7eee41a7f8b0d1d84 /src | |
parent | bceb5ace37cf6b0de1c41525610824fd77f71334 (diff) | |
parent | 77343b7e956416b2d2a8e45b5a2a2e683e1ed836 (diff) | |
download | ayatana-indicator-application-3e415d534a762f91df41222d473354f1062bd17d.tar.gz ayatana-indicator-application-3e415d534a762f91df41222d473354f1062bd17d.tar.bz2 ayatana-indicator-application-3e415d534a762f91df41222d473354f1062bd17d.zip |
* Upstream Merge
* Checking to make sure we get a list of keys before using
them.
* Fixing typo for group name in overrides file.
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index d632456..2306230 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -273,7 +273,14 @@ load_override_file (GHashTable * hash, const gchar * filename) return; } - gchar ** keys = g_key_file_get_keys(keyfile, OVERRIDE_GROUP_NAME, NULL, NULL); + gchar ** keys = g_key_file_get_keys(keyfile, OVERRIDE_GROUP_NAME, NULL, &error); + if (error != NULL) { + g_warning("Unable to get keys from keyfile '%s' because: %s", filename, error->message); + g_error_free(error); + g_key_file_free(keyfile); + return; + } + gchar * key = keys[0]; gint i; |