changeset 6453:34c9cec19fc5

8009985: [parfait] Uninitialised variable at jdk/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c Reviewed-by: sla, rbackman, alanb, dholmes, rdurbin Contributed-by: peter.allwin@oracle.com
author rbackman
date Thu, 04 Jul 2013 12:39:26 +0200
parents f59060c18bb1
children 0020c338c0a4
files src/solaris/native/com/sun/management/UnixOperatingSystem_md.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c	Thu Jul 04 10:31:31 2013 -0700
+++ b/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c	Thu Jul 04 12:39:26 2013 +0200
@@ -372,7 +372,7 @@
     size_t fds_size;
 
     kres = pid_for_task(mach_task_self(), &my_pid);
-    if (res != KERN_SUCCESS) {
+    if (kres != KERN_SUCCESS) {
         throw_internal_error(env, "pid_for_task failed");
         return -1;
     }