projects
/
henge
/
apc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f709df3
)
fixed potential segfault
author
ken
<ken@mihrtec.com>
Sat, 18 Feb 2017 19:22:43 +0000
(11:22 -0800)
committer
ken
<ken@mihrtec.com>
Sat, 18 Feb 2017 19:22:43 +0000
(11:22 -0800)
src/ir.c
patch
|
blob
|
history
diff --git
a/src/ir.c
b/src/ir.c
index
27b4d15
..
d2829d6
100644
(file)
--- a/
src/ir.c
+++ b/
src/ir.c
@@
-596,8
+596,9
@@
union ir_setdata_t* ir_link
link = struct_alloc(ir_link_t);
\r
struct_clear(link);
\r
link->header.type = LDAT;
\r
- link->type = link_type;
\r
- link->classld = setld->classld;
\r
+ link->type = link_type;
\r
+ if (setld != NULL)
\r
+ link->classld = setld->classld;
\r
link->setld = setld;
\r
if (link_type != OLINK && name != NULL)
\r
link->header.data_name = name_alloc(name);
\r