diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-02-15 10:59:40 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-02-15 10:59:40 -0600 |
commit | 9756029c79b5bd640b071c19e26c5908ed0102df (patch) | |
tree | 0d00d0ecab3d0749640fdfee24f334ab730b6950 /src/timezone-completion.c | |
parent | 891f491abc15b0ff9a97559fec5ed0c3fc87c149 (diff) | |
parent | 4727ba29a8884048cb71107b8578efa05c2e70fc (diff) | |
download | ayatana-indicator-datetime-9756029c79b5bd640b071c19e26c5908ed0102df.tar.gz ayatana-indicator-datetime-9756029c79b5bd640b071c19e26c5908ed0102df.tar.bz2 ayatana-indicator-datetime-9756029c79b5bd640b071c19e26c5908ed0102df.zip |
lp:~charlesk/indicator-datetime/refix-844741
Diffstat (limited to 'src/timezone-completion.c')
-rw-r--r-- | src/timezone-completion.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timezone-completion.c b/src/timezone-completion.c index f223bf4..a4d4fb5 100644 --- a/src/timezone-completion.c +++ b/src/timezone-completion.c @@ -311,7 +311,7 @@ get_locale (void) return locale; } -static gchar * +static const gchar * get_version (void) { static gchar *version = NULL; @@ -351,11 +351,10 @@ request_zones (TimezoneCompletion * completion) priv->request_text = g_strdup (text); gchar * escaped = g_uri_escape_string (text, NULL, FALSE); - gchar * version = get_version (); + const gchar * version = get_version (); gchar * locale = get_locale (); gchar * url = g_strdup_printf (GEONAME_URL, escaped, version, locale); g_free (locale); - g_free (version); g_free (escaped); GFile * file = g_file_new_for_uri (url); |