pike.git/
src/
las.c
Branch:
Tag:
Non-build tags
All tags
No tags
2018-05-30
2018-05-30 13:28:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>
39049bbc35d932f4bd78bd9f7e6eb0cee8e37c92 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Compiler: Fixed potential NULL-dereference in -rt mode.
446:
} if (runtime_options & RUNTIME_CHECK_TYPES) { node *p = n->parent;
-
if (CAR(p) == n) {
+
if (
p && (
CAR(p) == n)
)
{
(_CAR(p) = mksoftcastnode(t, mkcastnode(mixed_type_string, n))) ->parent = p;
-
} else if (CDR(p) == n) {
+
} else if (
p && (
CDR(p) == n)
)
{
(_CDR(p) = mksoftcastnode(t, mkcastnode(mixed_type_string, n))) ->parent = p; } else {