svn commit: r354002 - stable/12/stand/common

Kyle Evans kevans at FreeBSD.org
Thu Oct 24 03:41:55 UTC 2019


Author: kevans
Date: Thu Oct 24 03:41:54 2019
New Revision: 354002
URL: https://svnweb.freebsd.org/changeset/base/354002

Log:
  MFC r341276:
  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

Modified:
  stable/12/stand/common/interp_forth.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/stand/common/interp_forth.c
==============================================================================
--- stable/12/stand/common/interp_forth.c	Thu Oct 24 03:40:20 2019	(r354001)
+++ stable/12/stand/common/interp_forth.c	Thu Oct 24 03:41:54 2019	(r354002)
@@ -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);


More information about the svn-src-all mailing list