diff options
author | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-08-21 10:04:26 -0700 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-08-21 19:04:26 +0200 |
commit | 704679b9066e160063ce5e2118b88ea0ed01f6ad (patch) | |
tree | b8f9216d6a1be5843bd19e6dd1920c681c7d5934 /navit/maptool/itembin.c | |
parent | 0d3efc0c9f7416d493b75ab8bc68ca5a1d9e3fb2 (diff) | |
download | navit-704679b9066e160063ce5e2118b88ea0ed01f6ad.tar.gz |
cleanup:maptool: use g_strcmp0 instead of strcmp (#434)
Diffstat (limited to 'navit/maptool/itembin.c')
-rw-r--r-- | navit/maptool/itembin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/maptool/itembin.c b/navit/maptool/itembin.c index a0c40138b..6f1328355 100644 --- a/navit/maptool/itembin.c +++ b/navit/maptool/itembin.c @@ -458,7 +458,7 @@ static int item_bin_sort_compare(const void *p1, const void *p2) { if(attr1&&attr2) { s1=(char *)(attr1+1); s2=(char *)(attr2+1); - ret=strcmp(s1,s2); + ret=g_strcmp0(s1,s2); if(ret) return ret; } @@ -475,7 +475,7 @@ static int item_bin_sort_compare(const void *p1, const void *p2) { s1=linguistics_casefold(s1); s2=linguistics_casefold(s2); - ret=strcmp(s1, s2); + ret=g_strcmp0(s1, s2); g_free(s1); g_free(s2); |