From f2b0da5880516916e2860cf7c20d3d88e0b1fd8d Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 16 Jan 2008 16:57:06 +0200 Subject: [PATCH] Use g_strcmp0 --- src/track.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/track.c b/src/track.c index 4cb8ea8..2f59da2 100644 --- a/src/track.c +++ b/src/track.c @@ -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); -- 2.39.5