]> err.no Git - mapper/commitdiff
Use g_strcmp0
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 16 Jan 2008 14:57:06 +0000 (16:57 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 16 Jan 2008 14:57:06 +0000 (16:57 +0200)
src/track.c

index 4cb8ea8eafcbe23a23aba18ade589d69293d5619..2f59da230d0cc530d2de79b51f5f5ea6f100d575 100644 (file)
@@ -181,7 +181,7 @@ announce_thres_unsquared=(20+(guint)_gps.speed)*_announce_notice_ratio*3;
 
 /* Check if we should announce upcoming waypoints. */
 if (show_directions && time && _next_way_dist_squared < (announce_thres_unsquared * announce_thres_unsquared)) {
-       if (_enable_voice && strcmp(_next_way->desc, _last_spoken_phrase)) {
+       if (_enable_voice && g_strcmp0(_next_way->desc, _last_spoken_phrase)) {
                g_free(_last_spoken_phrase);
                _last_spoken_phrase=g_strdup(_next_way->desc);
                speak_text(_last_spoken_phrase);