$NetBSD: patch-ae,v 1.12 2007/01/20 13:49:03 joerg Exp $ --- plugin/gd/gvtextlayout_gd.c.orig 2007-01-17 19:18:08.000000000 +0100 +++ plugin/gd/gvtextlayout_gd.c @@ -49,7 +49,7 @@ char *gd_alternate_fontlist(char *font) len = strlen(font) + 1; if (len > fontbufsz) { fontbufsz = 2 * len; - if (fontbuf) + if (fontbuf == NULL) fontbuf = malloc(fontbufsz); else fontbuf = realloc(fontbuf, fontbufsz);