author | Sharath M Srinivasan <sharath.srinivasan@oracle.com> |
Sat, 13 Oct 2012 05:08:30 -0700 | |
branch | s11u1-sru |
changeset 2385 | b142cc36553d |
parent 115 | c360825c3a3f |
child 1082 | 6d49548fa9da |
permissions | -rw-r--r-- |
--- 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>. */