[gimp/soc-2010-cage] app: more g_strcmp0()



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]