diff --git a/src/x86_64/Ginit.c b/src/x86_64/Ginit.c index 135c3c84..4689ef91 100644 --- a/src/x86_64/Ginit.c +++ b/src/x86_64/Ginit.c @@ -119,12 +119,13 @@ validate_mem (unw_word_t addr) addr = PAGE_START(addr); - for (i = 0; i < NLGA; i++) { - if (last_good_addr[i] && (addr == last_good_addr[i])) - return 0; - } + for (i = 0; i < NLGA; i++) + { + if (last_good_addr[i] && (addr == last_good_addr[i])) + return 0; + } - if (msync((void *) addr, 1, MS_SYNC) == -1) + if (msync ((void *) addr, 1, MS_SYNC) == -1) return -1; victim = lga_victim; @@ -251,7 +252,7 @@ x86_64_local_addr_space_init (void) unw_flush_cache (&local_addr_space, 0, 0); local_addr_space.validate = 0; - bzero(last_good_addr, sizeof(unw_word_t) * NLGA); + memset (last_good_addr, 0, sizeof (unw_word_t) * NLGA); lga_victim = 0; }