[geocode-glib] lib: Only cache if we don't have a parsing error
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] lib: Only cache if we don't have a parsing error
- Date: Fri, 19 Oct 2012 17:16:08 +0000 (UTC)
commit c6f30d1c1b772a923aba9eb59858fdd0bbdd7173
Author: Bastien Nocera <hadess hadess net>
Date: Fri Oct 19 18:57:30 2012 +0200
lib: Only cache if we don't have a parsing error
geocode-glib/geocode-glib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/geocode-glib.c b/geocode-glib/geocode-glib.c
index 58df2fc..d52abc7 100644
--- a/geocode-glib/geocode-glib.c
+++ b/geocode-glib/geocode-glib.c
@@ -784,7 +784,7 @@ geocode_object_resolve (GeocodeObject *object,
}
ret = _geocode_parse_resolve_json (contents, error);
- if (to_cache)
+ if (to_cache && ret != NULL)
geocode_object_cache_save (query, contents);
g_free (contents);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]