branch | s11u3-sru |
changeset 7627 | 4758b76d5ad5 |
parent 7623 | d89b1c5817f5 |
child 7628 | 409696918882 |
7623:d89b1c5817f5 | 7627:4758b76d5ad5 |
---|---|
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>. */ |