projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
3a4fab8
)
Commit
6b0218ffb89bcba0e31fcfab73d5170eef794c1e
author
Michel Pollet
<buserror@gmail.com>
Sat, 13 Jun 2015 20:26:50 +0000
(21:26 +0100)
committer
Michel Pollet
<buserror@gmail.com>
Thu, 2 Jul 2015 18:02:54 +0000
(19:02 +0100)
flahs() wasn't checking for a valid file pointer
Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/sim_vcd_file.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_vcd_file.c
b/simavr/sim/sim_vcd_file.c
index 8b1862088f60955c428845d5cc7c604a1eb8bd72..0999db3ae6ffbec01ecf2c59ccf03449cd1363b5 100644
(file)
--- a/
simavr/sim/sim_vcd_file.c
+++ b/
simavr/sim/sim_vcd_file.c
@@
-126,7
+126,7
@@
static void avr_vcd_flush_log(avr_vcd_t * vcd)
uint64_t oldbase = 0; // make sure it's different
char out[48];
- if (!vcd->logindex)
+ if (!vcd->logindex
|| !vcd->output
)
return;
// printf("avr_vcd_flush_log %d\n", vcd->logindex);