Patch for gconv_int.h
Andreas Jaeger
aj@suse.de
Fri Jun 23 08:41:00 GMT 2000
The following warning is produced by missing braces in gconv_int.h:
wcsmbsload.c:179: warning: initialization makes integer from pointer without a cast
Is it ok to install the appended patch?
Andreas
2000-06-23 Andreas Jaeger <aj@suse.de>
* iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
============================================================
Index: iconv/gconv_int.h
--- iconv/gconv_int.h 2000/06/20 00:15:42 1.28
+++ iconv/gconv_int.h 2000/06/23 15:36:31
@@ -129,7 +129,7 @@
char *result; \
char *tmp; \
size_t cnt = 0; \
- size_t suffix_len = suffix == NULL ? 0 : strlen (suffix); \
+ size_t suffix_len = (suffix) == NULL ? 0 : strlen (suffix); \
\
while (*cp != '\0') \
if (*cp++ == '/') \
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
More information about the Libc-hacker
mailing list