summaryrefslogtreecommitdiff
path: root/libsi/si.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-05-28 10:22:42 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-05-28 10:22:42 +0200
commit32dd727d057a1ba22d403f48306adae10285ac77 (patch)
tree01cbf459118cd7a100b45a9ba7b771772d757d81 /libsi/si.c
parentdf463b5a2a6814b12922dd7b2acad88263979c02 (diff)
downloadvdr-32dd727d057a1ba22d403f48306adae10285ac77.tar.gz
vdr-32dd727d057a1ba22d403f48306adae10285ac77.tar.bz2
Fixed checking iconv_open() return value
Diffstat (limited to 'libsi/si.c')
-rw-r--r--libsi/si.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsi/si.c b/libsi/si.c
index a1d2f345..aae9a2fb 100644
--- a/libsi/si.c
+++ b/libsi/si.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: si.c 1.18 2007/04/22 13:56:39 kls Exp $
+ * $Id: si.c 1.19 2007/05/28 10:22:42 kls Exp $
* *
***************************************************************************/
@@ -370,7 +370,7 @@ static bool convertCharacterTable(const char *from, size_t fromLength, char *to,
{
if (SystemCharacterTable) {
iconv_t cd = iconv_open(SystemCharacterTable, fromCode);
- if (cd >= 0) {
+ if (cd != (iconv_t)-1) {
char *fromPtr = (char *)from;
while (fromLength > 0 && toLength > 1) {
if (iconv(cd, &fromPtr, &fromLength, &to, &toLength) == size_t(-1)) {