projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
30e2708
)
null pointer safeguards
author
Michael Wallner
<mike@php.net>
Tue, 5 Sep 2017 06:52:47 +0000
(08:52 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 5 Sep 2017 06:52:47 +0000
(08:52 +0200)
src/types/decl_type.c
patch
|
blob
|
history
diff --git
a/src/types/decl_type.c
b/src/types/decl_type.c
index afab9e307cae40995b9bd14abb91e6336d0f6a1b..dbaa171980685c698922f395ddf3bafebcd173cf 100644
(file)
--- a/
src/types/decl_type.c
+++ b/
src/types/decl_type.c
@@
-300,11
+300,15
@@
void psi_decl_type_dump_args_with_layout(int fd, struct psi_plist *args,
while (psi_plist_get(args, i++, &sarg)) {
dprintf(fd, "%s", psi_t_indent(level));
psi_decl_arg_dump(fd, sarg, level);
while (psi_plist_get(args, i++, &sarg)) {
dprintf(fd, "%s", psi_t_indent(level));
psi_decl_arg_dump(fd, sarg, level);
- if (sarg->layout->bfw) {
- dprintf(fd, ":%zu", sarg->layout->bfw->len);
+ if (sarg->layout) {
+ if (sarg->layout->bfw) {
+ dprintf(fd, ":%zu", sarg->layout->bfw->len);
+ }
+ dprintf(fd, "::(%zu, %zu);\n", sarg->layout->pos,
+ sarg->layout->len);
+ } else {
+ dprintf(fd, ";\n");
}
}
- dprintf(fd, "::(%zu, %zu);\n", sarg->layout->pos,
- sarg->layout->len);
}
--level;
}
}
--level;
}