Skip to content

Commit e5b8b77

Browse files
author
Michael Meskes
committed
Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers
or array variables.
1 parent bc09747 commit e5b8b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur)
350350
else
351351
{
352352
newvar = new_variable(cat_str(4, mm_strdup("("),
353-
mm_strdup(ecpg_type_name(ptr->variable->type->type)),
353+
mm_strdup(ecpg_type_name(ptr->variable->type->u.element->type)),
354354
mm_strdup(" *)(ECPGget_var("),
355355
mm_strdup(var_text)),
356356
ECPGmake_array_type(ECPGmake_simple_type(ptr->variable->type->u.element->type,

0 commit comments

Comments
 (0)