diff options
author | Bruno Haible <bruno@clisp.org> | 2008-04-16 03:35:29 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-04-16 03:35:29 +0200 |
commit | b2a72dabdfa8bd663f0d5e61706b82953390d4fb (patch) | |
tree | c5498d17607f4624ed369fe4aab95e51f79a7303 /lib/uniconv | |
parent | da7ca7f1991964ba2de6a6c49ba6239697f3a4cc (diff) | |
download | gnulib-b2a72dabdfa8bd663f0d5e61706b82953390d4fb.tar.gz |
Fix bug in error handling code.
Diffstat (limited to 'lib/uniconv')
-rw-r--r-- | lib/uniconv/u-conv-to-enc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uniconv/u-conv-to-enc.h b/lib/uniconv/u-conv-to-enc.h index fa5835dc92..b69a2b7f52 100644 --- a/lib/uniconv/u-conv-to-enc.h +++ b/lib/uniconv/u-conv-to-enc.h @@ -1,5 +1,5 @@ /* Conversion from UTF-16/UTF-32 to legacy encodings. - Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -67,7 +67,7 @@ FUNC (const char *tocode, utf8_src = U_TO_U8 (src, srclen, tmpbuf, &tmpbufsize); if (utf8_src == NULL) - return NULL; + return -1; utf8_srclen = tmpbufsize; if (offsets != NULL) |