changeset 5759:ad126e65ccc5

7164282: check for NULL return from malloc is testing wrong variable name. Reviewed-by: igor, flar
author prr
date Tue, 26 Jun 2012 09:54:29 -0700
parents c689cc1ef29a
children c960cb8d0f8b
files src/windows/native/sun/font/lcdglyph.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/font/lcdglyph.c	Tue Jun 26 09:53:27 2012 -0700
+++ b/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;