[glib/glib-2-22] Fix the filename roundtrip check
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/glib-2-22] Fix the filename roundtrip check
- Date: Thu, 7 Jan 2010 00:35:50 +0000 (UTC)
commit 2c0c35af564fd29b10345b38505ccae70d59eaad
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 6 13:23:48 2010 -0500
Fix the filename roundtrip check
The check was always failing because the code was comparing
the wrong strings. Reported in bug 605977.
(cherry picked from commit f2d8f6287d6e3fcb9e58402c2051d557f7e41632)
gio/glocalfile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index f6036e3..71229e9 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -423,7 +423,7 @@ g_local_file_get_parse_name (GFile *file)
charset, "UTF-8", NULL, NULL, NULL);
if (roundtripped_filename == NULL ||
- strcmp (utf8_filename, roundtripped_filename) != 0)
+ strcmp (filename, roundtripped_filename) != 0)
{
g_free (utf8_filename);
utf8_filename = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]