summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-19 20:46:48 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-19 20:46:48 -0300
commitde0821ea0cfad217aff0aa8e0ef4a035e19192ff (patch)
treeaa7ead18a5fc33cf790669b20a2345f93066a071
parent74400a651a461cd6181ed20e4074cc1b3bd04aab (diff)
downloadeeshow-de0821ea0cfad217aff0aa8e0ef4a035e19192ff.tar.gz
eeshow-de0821ea0cfad217aff0aa8e0ef4a035e19192ff.tar.bz2
eeshow-de0821ea0cfad217aff0aa8e0ef4a035e19192ff.zip
eeshow/gui/gui.c (add_hist): initialize hist->libs_open
This is normally done by parse_files, except when we can't find the schematics file.
-rw-r--r--gui/gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index 3a66c9a..ec738ca 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -316,6 +316,7 @@ static void add_hist(void *user, struct hist *h)
hist = alloc_type(struct gui_hist);
hist->ctx = ctx;
hist->vcs_hist = h;
+ hist->libs_open = 0;
hist->identical = 0;
sch = parse_files(hist, ahc->n_args, ahc->args, ahc->recurse, prev);
hist->sheets = sch ? get_sheets(ctx, sch) : NULL;