From 9635f031a1dac3c5547168370b2cacbc2d96da6d Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 22 Jul 2015 00:27:13 -0700 Subject: [PATCH] Correctly display events when dumping using the FST format This patch is from Tony Bybell and fixes a segmentation fault when dumping an event to a FST file. --- vpi/sys_fst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpi/sys_fst.c b/vpi/sys_fst.c index a0a770c6b..6dfcec908 100644 --- a/vpi/sys_fst.c +++ b/vpi/sys_fst.c @@ -83,7 +83,7 @@ static void show_this_item(struct vcd_info*info) } else { value.format = vpiBinStrVal; vpi_get_value(info->item, &value); - fstWriterEmitValueChange(dump_file, info->handle, value.value.str); + fstWriterEmitValueChange(dump_file, info->handle, (type != vpiNamedEvent) ? value.value.str : "1"); } }