From: Ivan Maidanski Date: Mon, 19 Dec 2016 21:54:32 +0000 (+0300) Subject: Fix storage class of local variable in register_dynamic_libraries (Irix) X-Git-Tag: v8.0.0~976 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfe8e64b1780a2c2420ad56f2afe2213547e1aa0;p=gc 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). --- 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;