Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2018 02:14:41 +0000 (UTC)
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341276 - head/stand/common
Message-ID:  <201811300214.wAU2Ef4C033294@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sobomax
Date: Fri Nov 30 02:14:41 2018
New Revision: 341276
URL: https://svnweb.freebsd.org/changeset/base/341276

Log:
  When handling CMD_CRIT error set command_errmsg to NULL after we dump it out,
  so that it does not result in error message printed twice.
  
  OK load doodoo
  can't find 'doodoo'
  can't find 'doodoo'
  OK
  
  MFC after:	2 weeks

Modified:
  head/stand/common/interp_forth.c

Modified: head/stand/common/interp_forth.c
==============================================================================
--- head/stand/common/interp_forth.c	Fri Nov 30 02:06:30 2018	(r341275)
+++ head/stand/common/interp_forth.c	Fri Nov 30 02:14:41 2018	(r341276)
@@ -142,6 +142,7 @@ bf_command(FICL_VM *vm)
 	switch (result) {
 	case CMD_CRIT:
 		printf("%s\n", command_errmsg);
+		command_errmsg = NULL;
 		break;
 	case CMD_FATAL:
 		panic("%s", command_errmsg);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811300214.wAU2Ef4C033294>