[frogr] Fixed bug in comparison function for strings
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Fixed bug in comparison function for strings
- Date: Sun, 17 Jul 2011 20:30:49 +0000 (UTC)
commit e6b799dfd324c7720df04bc9f52e0a475c3ba9ec
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Sun Jul 17 22:06:07 2011 +0200
Fixed bug in comparison function for strings
src/frogr-main-view-model.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-main-view-model.c b/src/frogr-main-view-model.c
index d0d73ba..2a4274b 100644
--- a/src/frogr-main-view-model.c
+++ b/src/frogr-main-view-model.c
@@ -108,8 +108,8 @@ _compare_pictures_by_property (FrogrPicture *p1, FrogrPicture *p2,
str1 = g_value_get_string (&value1);
str2 = g_value_get_string (&value2);
- str1_cf = str1 ? g_utf8_casefold (str1, -1) : g_strdup ("");
- str2_cf = str1 ? g_utf8_casefold (str2, -1) : g_strdup ("");
+ str1_cf = g_utf8_casefold (str1 ? str1 : "", -1);
+ str2_cf = g_utf8_casefold (str2 ? str2 : "", -1);
result = g_utf8_collate (str1_cf, str2_cf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]