[gnome-initial-setup] eulas: Require an explicit .txt suffix for text files
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] eulas: Require an explicit .txt suffix for text files
- Date: Thu, 12 Jul 2012 17:52:14 +0000 (UTC)
commit 8180e50476f581c39991d1d5cac4a11b37ca43af
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jul 12 13:50:41 2012 -0400
eulas: Require an explicit .txt suffix for text files
gnome-initial-setup/gis-eula-pages.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/gis-eula-pages.c b/gnome-initial-setup/gis-eula-pages.c
index 20a4b2d..a9996af 100644
--- a/gnome-initial-setup/gis-eula-pages.c
+++ b/gnome-initial-setup/gis-eula-pages.c
@@ -123,7 +123,7 @@ build_eula_text_view (GFile *eula)
path = g_file_get_path (eula);
last_dot = strrchr (path, '.');
- if (last_dot == NULL || strcmp(last_dot, ".txt") == 0)
+ if (strcmp(last_dot, ".txt") == 0)
buffer = build_eula_text_buffer_plain_text (eula, &error);
else if (strcmp (last_dot, ".xml") == 0)
buffer = build_eula_text_buffer_pango_markup (eula, &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]