From: Kaj-Michael Lang Date: Wed, 16 Jan 2008 14:57:06 +0000 (+0200) Subject: Use g_strcmp0 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2b0da5880516916e2860cf7c20d3d88e0b1fd8d;p=mapper Use g_strcmp0 --- 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);