7164282: check for NULL return from malloc is testing wrong variable name.
authorprr
Tue, 26 Jun 2012 09:54:29 -0700
changeset 13140 5c57c463f224
parent 13139 917a5a5434a9
child 13141 79e8276fc655
7164282: check for NULL return from malloc is testing wrong variable name. Reviewed-by: igor, flar
jdk/src/windows/native/sun/font/lcdglyph.c
--- a/jdk/src/windows/native/sun/font/lcdglyph.c	Tue Jun 26 09:53:27 2012 -0700
+++ b/jdk/src/windows/native/sun/font/lcdglyph.c	Tue Jun 26 09:54:29 2012 -0700
@@ -409,7 +409,7 @@
      */
     imageSize = bytesWidth*height;
     glyphInfo = (GlyphInfo*)malloc(sizeof(GlyphInfo)+imageSize);
-    if (malloc == NULL) {
+    if (glyphInfo == NULL) {
         FREE_AND_RETURN;
     }
     glyphInfo->cellInfo = NULL;