8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c
authorsla
Tue, 05 Mar 2013 08:50:59 +0100
changeset 15925 6a17dd9e92ac
parent 15858 bfb8d08cbb3d
child 15926 8e87d545195f
8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c Reviewed-by: dholmes, kvn, mikael, morris
hotspot/agent/src/os/linux/ps_core.c
--- a/hotspot/agent/src/os/linux/ps_core.c	Fri Mar 01 15:59:10 2013 -0800
+++ b/hotspot/agent/src/os/linux/ps_core.c	Tue Mar 05 08:50:59 2013 +0100
@@ -132,12 +132,12 @@
 }
 
 // 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;