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.
This commit is contained in:
Cary R 2015-07-22 00:27:13 -07:00
parent e6be9dec08
commit 9635f031a1
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}