зеркало из https://github.com/github/ruby.git
Fix compiler warning for uninitialized variable
Fixes this compiler warning: warning: 'loc' may be used uninitialized in this function [-Wmaybe-uninitialized] bt_yield_loc(loc - cfunc_counter, cfunc_counter, btobj);
This commit is contained in:
Родитель
2d5ecd60a5
Коммит
2ea175eb69
|
@ -590,7 +590,7 @@ rb_ec_partial_backtrace_object(const rb_execution_context_t *ec, long start_fram
|
|||
ptrdiff_t size;
|
||||
rb_backtrace_t *bt;
|
||||
VALUE btobj = backtrace_alloc(rb_cBacktrace);
|
||||
rb_backtrace_location_t *loc;
|
||||
rb_backtrace_location_t *loc = NULL;
|
||||
unsigned long cfunc_counter = 0;
|
||||
GetCoreDataFromValue(btobj, rb_backtrace_t, bt);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче