Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 57cac1c

Browse files
author
Monte Goulding
committed
[[ CID 117572 ]] Null pointer dereferences (FORWARD_NULL)
1 parent 026026d commit 57cac1c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lcidlc/src/Value.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ void ValueRelease(ValueRef self)
8383
Value *t_name;
8484
for(t_name = s_names; t_name != nil && t_name -> name . next != self; t_name = t_name -> name . next)
8585
;
86-
t_name -> name . next = self -> name . next;
86+
if (t_name != nil)
87+
t_name -> name . next = self -> name . next;
8788
}
8889

8990
ValueRelease(self -> name . string);

0 commit comments

Comments
 (0)