This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for gconv_int.h



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]