changeset 110 | 77641682ba6f |
109:07cc6a1a08ad | 110:77641682ba6f |
---|---|
1 --- lib/glob/xmbsrtowcs.c 2008-08-12 10:17:54.000000000 -0400 |
|
2 +++ lib/glob/xmbsrtowcs.c 2009-08-10 15:46:18.000000000 -0400 |
|
3 @@ -30,7 +30,7 @@ |
|
4 #if HANDLE_MULTIBYTE |
|
5 |
|
6 #ifndef FREE |
|
7 -# define FREE(x) do { if (x) free (x); } while (0) |
|
8 +# define FREE(x) do { if (x) free (x); x = 0; } while (0) |
|
9 #endif |
|
10 /* On some locales (ex. ja_JP.sjis), mbsrtowc doesn't convert 0x5c to U<0x5c>. |
|
11 So, this function is made for converting 0x5c to U<0x5c>. */ |