components/bash/patches/solaris-008.xmbsrtowcs.c.patch
author Kristina Tripp <Kristina.Tripp@oracle.com>
Thu, 09 Oct 2014 15:53:40 -0700
branchs11-update
changeset 3378 8c7eb3630145
parent 115 c360825c3a3f
child 1082 6d49548fa9da
permissions -rw-r--r--
PSARC/2014/275 Hiera 1.3.4 19137944 Add hiera to userland consolidation 19623766 hiera-19 package not installed if ruby-19 not installed

--- lib/glob/xmbsrtowcs.c	2008-08-12 10:17:54.000000000 -0400
+++ lib/glob/xmbsrtowcs.c	2009-08-10 15:46:18.000000000 -0400
@@ -30,7 +30,7 @@
 #if HANDLE_MULTIBYTE
 
 #ifndef FREE
-#  define FREE(x)	do { if (x) free (x); } while (0)
+#  define FREE(x)	do { if (x) free (x);  x = 0; } while (0)
 #endif
 /* On some locales (ex. ja_JP.sjis), mbsrtowc doesn't convert 0x5c to U<0x5c>.
    So, this function is made for converting 0x5c to U<0x5c>. */