changeset 4307:255c0a4cb4eb

8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c Reviewed-by: dholmes, kvn, mikael, morris
author sla
date Tue, 05 Mar 2013 08:50:59 +0100
parents 3e83d69c19db
children 9058789475af
files agent/src/os/linux/ps_core.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/agent/src/os/linux/ps_core.c	Fri Mar 01 15:59:10 2013 -0800
+++ b/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;