[geocode-glib] lib: Fix GeocodeForward XEP test
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] lib: Fix GeocodeForward XEP test
- Date: Mon, 26 Nov 2012 09:30:26 +0000 (UTC)
commit c9bba351d332ad1f16b5166eb4adeb745426ce0b
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 26 10:05:45 2012 +0100
lib: Fix GeocodeForward XEP test
One of the fields we were supposed to ignore was getting added
to the query with a NULL key name.
geocode-glib/geocode-forward.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 1f8f72a..b606cec 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -176,6 +176,8 @@ geocode_forward_fill_params (GeocodeForward *forward,
g_warning ("XEP attribute '%s' unhandled", key);
continue;
}
+ if (gc_attr == NULL)
+ continue;
str = g_value_get_string (value);
if (str == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]