# HG changeset patch # User prr # Date 1340729669 25200 # Node ID 5c57c463f224d47d2dafb92810393e4a32faf2bc # Parent 917a5a5434a93c85698c8e7740d9afd448e7b1a0 7164282: check for NULL return from malloc is testing wrong variable name. Reviewed-by: igor, flar diff -r 917a5a5434a9 -r 5c57c463f224 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;