]> 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 18:49:59 +0000 (21:49 +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 47ba6891df10dde425cc07c7ab2c8b2b2d9d13d3..823eb31922321f6dea64fd96db12f571d025f75e 100644 (file)
@@ -783,7 +783,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;