From bfe8e64b1780a2c2420ad56f2afe2213547e1aa0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 20 Dec 2016 00:54:32 +0300 Subject: [PATCH] Fix storage class of local variable in register_dynamic_libraries (Irix) * dyn_load.c [IRIX5 || USE_PROC_FOR_LIBRARIES && !LINUX] (GC_register_dynamic_libraries): Remove "static" for needed_sz local variable (and initialize it to zero). --- dyn_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyn_load.c b/dyn_load.c index d6616a52..1cfa7772 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -789,7 +789,7 @@ GC_INNER void GC_register_dynamic_libraries(void) char buf[30]; static prmap_t * addr_map = 0; static int current_sz = 0; /* Number of records currently in addr_map */ - static int needed_sz; /* Required size of addr_map */ + int needed_sz = 0; /* Required size of addr_map */ int i; long flags; ptr_t start; -- 2.40.0