projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcbf915
)
Check for (GIConv)-1 instead of NULL.
author
Ignacio Casal Quinteiro
<icq@gnome.org>
Sun, 21 Nov 2010 20:20:44 +0000
(21:20 +0100)
committer
Ignacio Casal Quinteiro
<icq@gnome.org>
Sun, 21 Nov 2010 20:21:22 +0000
(21:21 +0100)
gio/gcharsetconverter.c
patch
|
blob
|
history
diff --git
a/gio/gcharsetconverter.c
b/gio/gcharsetconverter.c
index ea604374d4f45746a05b61915a33fa202d3f72ca..3ec621f2b7e7abda332f34207cb5b0f74e7c040b 100644
(file)
--- a/
gio/gcharsetconverter.c
+++ b/
gio/gcharsetconverter.c
@@
-451,7
+451,7
@@
g_charset_converter_initable_init (GInitable *initable,
conv->iconv =
g_iconv_open (conv->to, conv->from);
- if (conv->iconv ==
NULL
)
+ if (conv->iconv ==
(GIConv)-1
)
{
if (errno == EINVAL)
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,