summaryrefslogtreecommitdiff
path: root/debian/patches/compare-pointer-with-literal.patch
blob: 3d2109a08d58373da148c06081215b066a1c6986 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/jdk/src/solaris/native/sun/awt/awt_Font.c
+++ b/jdk/src/solaris/native/sun/awt/awt_Font.c
@@ -502,7 +502,7 @@ awtJNI_GetFontData(JNIEnv * env, jobject
             jio_snprintf(fdata->flist[i].xlfd, strlen(nativename) + 10,
                          nativename, size * 10);
 
-            if (nativename != NULL && nativename != "")
+            if (nativename && !strcmp(nativename, ""))
                 JNU_ReleaseStringPlatformChars(env, fontDescriptorName, (const char *) nativename);
 
             /*