changeset 72 | 82bde2a81435 |
parent 71 | 121736d79438 |
child 73 | 73cc228b67a6 |
71:121736d79438 | 72:82bde2a81435 |
---|---|
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>. */ |