2006-03-06
2006-03-06 08:47:36 by Peter Bortas <zino@lysator.liu.se>
-
00b2e1d3514953491ed8a2ac497ac09ff161920e
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 7.9
Failed malloc is fatal. Avoids NULL dereferencing.
Rev: src/modules/Image/font.c:1.90
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: font.c,v 1.89 2005/11/13 12:14:28 nilsson Exp $
+ || $Id: font.c,v 1.90 2006/03/06 08:47:36 peter Exp $
*/
#include "global.h"
344: Inside #if defined(HAVE_MMAP)
else
{
#endif
- fh = (struct file_head *)malloc(size);
+ fh = (struct file_head *)xalloc(size);
#ifdef FONT_DEBUG
fprintf(stderr,"FONT Malloced %p (%d)\n", fh, size);
#endif