[geocode-glib] lib: Fix possible use of uninitialised variable
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] lib: Fix possible use of uninitialised variable
- Date: Wed, 31 Oct 2012 22:30:19 +0000 (UTC)
commit 11db40a8901d1e78e31d79ad958b184ba5327a45
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 31 23:29:51 2012 +0100
lib: Fix possible use of uninitialised variable
geocode-glib/geocode-glib.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-glib.c b/geocode-glib/geocode-glib.c
index c4c800d..e00055b 100644
--- a/geocode-glib/geocode-glib.c
+++ b/geocode-glib/geocode-glib.c
@@ -721,6 +721,7 @@ get_resolve_query_for_params (GeocodeObject *object,
if (object->priv->type == GEOCODE_GLIB_RESOLVE_REVERSE)
g_hash_table_insert (ht, "gflags", "R");
+ locale = NULL;
if (g_hash_table_lookup (ht, "locale") == NULL) {
locale = geocode_object_get_lang ();
if (locale)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]