summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types.c b/types.c
index 0c79d33..887c39b 100644
--- a/types.c
+++ b/types.c
@@ -2242,6 +2242,8 @@ static bool types_decl(Typer *tr, Declaration *d) {
f->foreign.fn_ptr = NULL;
d->flags |= DECL_FOUND_VAL;
+ } else {
+ d->foreign.name_str = name_cstr;
}
}