Fix storage class of local variable in register_dynamic_libraries (Irix)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 19 Dec 2016 21:54:32 +0000 (00:54 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 19 Dec 2016 21:54:32 +0000 (00:54 +0300)
* 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

index d6616a5..1cfa777 100644 (file)
@@ -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;