components/bash/patches/solaris-008.xmbsrtowcs.c.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Thu, 13 Dec 2012 15:52:21 -0800
changeset 1082 6d49548fa9da
parent 115 c360825c3a3f
child 5518 c47fe0edc204
permissions -rw-r--r--
15754923 SUNBT7111705 Upgrade bash to 4.2

--- lib/glob/xmbsrtowcs.c	2010-05-30 15:36:27.000000000 -0700
+++ lib/glob/xmbsrtowcs.c	2011-11-29 09:34:23.471481937 -0800
@@ -36,7 +36,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
 
 #if ! HAVE_STRCHRNUL