[gimp/soc-2010-cage] app: more g_strcmp0()
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage] app: more g_strcmp0()
- Date: Wed, 30 Jun 2010 22:07:02 +0000 (UTC)
commit 4ade2452f6d0263a25bf1c1afe5aa0990c33095e
Author: Michael Natterer <mitch gimp org>
Date: Sun Jun 6 19:50:59 2010 +0200
app: more g_strcmp0()
app/config/gimpxmlparser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/config/gimpxmlparser.c b/app/config/gimpxmlparser.c
index 5a2f874..5804865 100644
--- a/app/config/gimpxmlparser.c
+++ b/app/config/gimpxmlparser.c
@@ -167,7 +167,7 @@ gimp_xml_parser_parse_io_channel (GimpXmlParser *parser,
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
io_encoding = g_io_channel_get_encoding (io);
- if (io_encoding && strcmp (io_encoding, "UTF-8"))
+ if (g_strcmp0 (io_encoding, "UTF-8"))
{
g_warning ("gimp_xml_parser_parse_io_channel():\n"
"The encoding has already been set on this GIOChannel!");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]