From b500e93ae0eeea855bb0d7833346d5f149516895 Mon Sep 17 00:00:00 2001 From: sla Date: Tue, 5 Mar 2013 08:50:59 +0100 Subject: [PATCH] 8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c Reviewed-by: dholmes, kvn, mikael, morris --- agent/src/os/linux/ps_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/src/os/linux/ps_core.c b/agent/src/os/linux/ps_core.c index 30023f239..c211ff3b3 100644 --- a/agent/src/os/linux/ps_core.c +++ b/agent/src/os/linux/ps_core.c @@ -132,12 +132,12 @@ static map_info* add_map_info(struct ps_prochandle* ph, int fd, off_t offset, } // Part of the class sharing workaround -static map_info* add_class_share_map_info(struct ps_prochandle* ph, off_t offset, +static void add_class_share_map_info(struct ps_prochandle* ph, off_t offset, uintptr_t vaddr, size_t memsz) { map_info* map; if ((map = allocate_init_map(ph->core->classes_jsa_fd, offset, vaddr, memsz)) == NULL) { - return NULL; + return; } map->next = ph->core->class_share_maps; -- GitLab