changeset 1894:1c2a70329868

6891483: XToolkit.getEnv() checks for NULL on a wrong symbol Reviewed-by: dcherepanov
author anthony
date Mon, 19 Oct 2009 16:06:41 +0400
parents 8e566a3daa5c
children 98e1d504dc9b
files src/solaris/native/sun/xawt/XToolkit.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/xawt/XToolkit.c	Thu Oct 15 16:37:55 2009 -0700
+++ b/src/solaris/native/sun/xawt/XToolkit.c	Mon Oct 19 16:06:41 2009 +0400
@@ -677,7 +677,7 @@
     jstring ret = NULL;
 
     keystr = JNU_GetStringPlatformChars(env, key, NULL);
-    if (key) {
+    if (keystr) {
         ptr = getenv(keystr);
         if (ptr) {
             ret = JNU_NewStringPlatform(env, (const char *) ptr);