Skip to content

Commit 2635252

Browse files
committed
Take pointer after grow
1 parent 9a2e763 commit 2635252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stackwalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ JL_DLLEXPORT jl_value_t *jl_backtrace_from_here(int returnsp, int skip)
259259
jl_array_grow_end(ip, maxincr);
260260
uintptr_t *sp_ptr = NULL;
261261
if (returnsp) {
262-
sp_ptr = (uintptr_t*)jl_array_data(sp) + offset;
263262
jl_array_grow_end(sp, maxincr);
263+
sp_ptr = (uintptr_t*)jl_array_data(sp) + offset;
264264
}
265265
size_t size_incr = 0;
266266
have_more_frames = jl_unw_stepn(&cursor, (jl_bt_element_t*)jl_array_data(ip) + offset,

0 commit comments

Comments
 (0)