Skip to content

Commit d749899

Browse files
Merge branch 'master' into qflow-1.4
2 parents a8d0ae3 + e1f692f commit d749899

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.97
1+
1.4.98

src/readverilog.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ void ReadVerilogFile(char *fname, struct cellstack **CellStackPtr,
14211421
}
14221422
else if (!strcmp(nexttok, "wire") ||
14231423
!strcmp(nexttok, "assign")) { /* wire = node */
1424-
struct netrec wb, *nb;
1424+
struct netrec wb, *nb = NULL;
14251425
char *eptr, *wirename;
14261426
char is_assignment = FALSE;
14271427
char is_lhs_bundle = FALSE, is_rhs_bundle = FALSE;
@@ -1474,7 +1474,7 @@ void ReadVerilogFile(char *fname, struct cellstack **CellStackPtr,
14741474
/* until this tool handles bus joining. If the */
14751475
/* assignment is made on an undeclared wire, then */
14761476
/* adjust the wire bounds. */
1477-
if (nb && nb->start == -1) {
1477+
if (nb && (nb->start == -1)) {
14781478
nb->start = wb.start;
14791479
nb->end = wb.end;
14801480
}

0 commit comments

Comments
 (0)