changeset 7021:754c9bb4f085

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 sla
date Wed, 24 Apr 2013 14:49:49 +0200
parents 57b02a7558f3
children bbcebf893b83
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	Tue Apr 23 15:07:48 2013 -0700
+++ b/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;
     }