Skip to content
Permalink
Browse files

8239224: libproc_impl.c previous_thr may be used uninitialized warning

Reviewed-by: clanger, dholmes
  • Loading branch information
Matthias Baesken
Matthias Baesken committed Feb 18, 2020
1 parent b6c1b49 commit 0e49c4987dc0e1f7d4fc032e0b427a99c5d8e813
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jdk.hotspot.agent/linux/native/libsaproc/libproc_impl.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -273,7 +273,7 @@ void delete_thread_info(struct ps_prochandle* ph, thread_info* thr_to_be_removed
if (thr_to_be_removed == ph->threads) {
ph->threads = ph->threads->next;
} else {
thread_info* previous_thr;
thread_info* previous_thr = NULL;
while (current_thr && current_thr != thr_to_be_removed) {
previous_thr = current_thr;
current_thr = current_thr->next;

0 comments on commit 0e49c49

Please sign in to comment.