8009985: [parfait] Uninitialised variable at jdk/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c
authorsla
Wed, 24 Apr 2013 14:49:49 +0200
changeset 17173 ce6a6d533139
parent 17172 305544d6fa75
child 17174 fc5ff6c1bff6
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
jdk/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c
--- a/jdk/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c	Tue Apr 23 15:07:48 2013 -0700
+++ b/jdk/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c	Wed Apr 24 14:49:49 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;
     }