diff options
Diffstat (limited to 'lib/uniconv/u8-conv-from-enc.c')
-rw-r--r-- | lib/uniconv/u8-conv-from-enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uniconv/u8-conv-from-enc.c b/lib/uniconv/u8-conv-from-enc.c index bcd0cd081f..09eba1e519 100644 --- a/lib/uniconv/u8-conv-from-enc.c +++ b/lib/uniconv/u8-conv-from-enc.c @@ -1,5 +1,5 @@ /* Conversion to UTF-8 from legacy encodings. - Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2006-2007, 2009 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 @@ -65,7 +65,7 @@ u8_conv_from_encoding (const char *fromcode, } /* Memory allocation. */ - if (*resultp != NULL && *lengthp >= srclen) + if ((*resultp != NULL && *lengthp >= srclen) || srclen == 0) result = *resultp; else { |