projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoupdate
[gnulib.git]
/
lib
/
unicase
/
ulc-casexfrm.c
diff --git
a/lib/unicase/ulc-casexfrm.c
b/lib/unicase/ulc-casexfrm.c
index
00009f8
..
aded556
100644
(file)
--- a/
lib/unicase/ulc-casexfrm.c
+++ b/
lib/unicase/ulc-casexfrm.c
@@
-36,10
+36,11
@@
ulc_casexfrm (const char *s, size_t n, const char *iso639_language,
char *result;
/* Convert the string to UTF-8. */
char *result;
/* Convert the string to UTF-8. */
- conv = convbuf;
conv_length = sizeof (convbuf) / sizeof (uint8_t);
conv_length = sizeof (convbuf) / sizeof (uint8_t);
- if (u8_conv_from_encoding (locale_charset (), iconveh_error, s, n, NULL,
- &conv, &conv_length) < 0)
+ conv =
+ u8_conv_from_encoding (locale_charset (), iconveh_error, s, n, NULL,
+ convbuf, &conv_length);
+ if (conv == NULL)
/* errno is set here. */
return NULL;
/* errno is set here. */
return NULL;