From 19d9b37c586d562ada95324653dc4043b0352a03 Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Tue, 20 Apr 2010 12:59:12 +0300 Subject: [PATCH] gisi: fix pointer checking --- gisi/iter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gisi/iter.c b/gisi/iter.c index ebe8e8f..152b236 100644 --- a/gisi/iter.c +++ b/gisi/iter.c @@ -177,7 +177,7 @@ bool g_isi_sb_iter_get_alpha_tag(const GIsiSubBlockIter *restrict iter, *utf8 = g_convert((const char *)ucs2, len, "UTF-8//TRANSLIT", "UCS-2BE", NULL, NULL, NULL); - return utf8 != NULL; + return *utf8 != NULL; } bool g_isi_sb_iter_get_latin_tag(const GIsiSubBlockIter *restrict iter, @@ -197,7 +197,7 @@ bool g_isi_sb_iter_get_latin_tag(const GIsiSubBlockIter *restrict iter, *latin = g_strndup((char *)str, len); - return latin != NULL; + return *latin != NULL; } bool g_isi_sb_iter_next(GIsiSubBlockIter *iter) -- 2.7.4