equal
deleted
inserted
replaced
1 --- lib/glob/xmbsrtowcs.c 2008-08-12 10:17:54.000000000 -0400 |
1 --- lib/glob/xmbsrtowcs.c 2010-05-30 15:36:27.000000000 -0700 |
2 +++ lib/glob/xmbsrtowcs.c 2009-08-10 15:46:18.000000000 -0400 |
2 +++ lib/glob/xmbsrtowcs.c 2011-11-29 09:34:23.471481937 -0800 |
3 @@ -30,7 +30,7 @@ |
3 @@ -36,7 +36,7 @@ |
4 #if HANDLE_MULTIBYTE |
4 #if HANDLE_MULTIBYTE |
5 |
5 |
6 #ifndef FREE |
6 #ifndef FREE |
7 -# define FREE(x) do { if (x) free (x); } while (0) |
7 -# define FREE(x) do { if (x) free (x); } while (0) |
8 +# define FREE(x) do { if (x) free (x); x = 0; } while (0) |
8 +# define FREE(x) do { if (x) free (x); x = 0; } while (0) |
9 #endif |
9 #endif |
10 /* On some locales (ex. ja_JP.sjis), mbsrtowc doesn't convert 0x5c to U<0x5c>. |
10 |
11 So, this function is made for converting 0x5c to U<0x5c>. */ |
11 #if ! HAVE_STRCHRNUL |