$NetBSD: patch-ae,v 1.13 2008/02/06 18:56:53 adam Exp $

--- plugin/gd/gvtextlayout_gd.c.orig	2007-11-08 20:42:15.000000000 +0100
+++ plugin/gd/gvtextlayout_gd.c
@@ -52,7 +52,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);
