[Xfce4-commits] <xfce4-weather-plugin:master> weather-config: Fix search dialog locking up with certain locations.

Harald Judt noreply at xfce.org
Fri Aug 3 01:06:06 CEST 2012


Updating branch refs/heads/master
         to 11b8038d4199485b670d1394416b705b73d9fd42 (commit)
       from 623dbd0577340db59fa55f0b974c7ab5838f6fc2 (commit)

commit 11b8038d4199485b670d1394416b705b73d9fd42
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Aug 3 01:00:53 2012 +0200

    weather-config: Fix search dialog locking up with certain locations.
    
    Commit 6e8ad2ce7cac713bd02e5116f8ddc69404d88ecd can cause the
    plugin to lock up when the selected result has only one comma ','.

 panel-plugin/weather-config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index 2d87650..0130d45 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -205,7 +205,7 @@ sanitize_location_name(const gchar *location_name)
     pos = g_utf8_strchr(location_name, -1, ',');
     if (pos != NULL) {
         pos2 = pos;
-        while (pos2 = g_utf8_find_next_char(pos2, NULL))
+        while (pos2 = g_utf8_next_char(pos2))
             if (g_utf8_get_char(pos2) == ',') {
                 pos = pos2;
                 break;


More information about the Xfce4-commits mailing list