Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 53f9f00d02359ec7645f6d022714ae47 > files > 14

gawk-3.1.5-16.el5.src.rpm

--- gawk-3.1.5/eval.c.wconcat	2006-02-14 09:40:54.000000000 +0100
+++ gawk-3.1.5/eval.c	2006-02-14 09:43:33.000000000 +0100
@@ -1176,6 +1176,13 @@
 			memcpy(l->stptr + l->stlen, r->stptr, r->stlen);
 			l->stlen += r->stlen;
 			l->stptr[l->stlen] = '\0';
+#if defined MBS_SUPPORT
+			if (r->wstptr != NULL)
+				free(r->wstptr);
+			r->wstptr = NULL;
+			r->wstlen = 0;
+			r->flags &= ~WSTRCUR;
+#endif /* MBS_SUPPORT */
 		} else {
 			char *nval;
 			size_t nlen = l->stlen + r->stlen + 2;