perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / shell / bash / patches / solaris-008.xmbsrtowcs.c.patch
blob4a37830cd90f5e839217cb8b532eb42ecd4372c5
1 # Setting the freed pointer to NULL after free'ing
2 # prevents it from being double-free'd.
3 # Solaris-specific patch.
4 --- lib/glob/xmbsrtowcs.c 2010-05-30 15:36:27.000000000 -0700
5 +++ lib/glob/xmbsrtowcs.c 2011-11-29 09:34:23.471481937 -0800
6 @@ -36,7 +36,7 @@
7 #if HANDLE_MULTIBYTE
9 #ifndef FREE
10 -# define FREE(x) do { if (x) free (x); } while (0)
11 +# define FREE(x) do { if (x) free (x); x = 0; } while (0)
12 #endif
14 #if ! HAVE_STRCHRNUL