]> granicus.if.org Git - gc/commitdiff
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, 6 Feb 2017 17:04:30 +0000 (20:04 +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 d6616a528d7b53779058f597859f73c08159f6c9..1cfa7772c8054b97086ca802a6f685776ebb75a7 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;