svn commit: r348519 - head/contrib/one-true-awk

Warner Losh imp at FreeBSD.org
Sun Jun 2 20:52:22 UTC 2019


Author: imp
Date: Sun Jun  2 20:52:21 2019
New Revision: 348519
URL: https://svnweb.freebsd.org/changeset/base/348519

Log:
  Revert r348518
  
  It should not have happened. The change is actually in upstream and I misread the diffs.

Modified:
  head/contrib/one-true-awk/tran.c

Modified: head/contrib/one-true-awk/tran.c
==============================================================================
--- head/contrib/one-true-awk/tran.c	Sun Jun  2 20:47:15 2019	(r348518)
+++ head/contrib/one-true-awk/tran.c	Sun Jun  2 20:52:21 2019	(r348519)
@@ -366,7 +366,7 @@ char *setsval(Cell *vp, const char *s)	/* set string v
 		if (donerec == 0)
 			recbld();
 	}
-	t = tostring(s);	/* in case it's self-assign */
+	t = s ? tostring(s) : tostring("");	/* in case it's self-assign */
 	if (freeable(vp))
 		xfree(vp->sval);
 	vp->tval &= ~(NUM|CONVC|CONVO);


More information about the svn-src-head mailing list