f50fd446f6
Patch provided by Hasso Tepper in PR 38863 and alread fixed in upsteram. http://ggi.cvs.sourceforge.net/ggi/ggi-core/libggi/display/vgl/visual.c?r1=1.12&r2=1.13
20 lines
617 B
Text
20 lines
617 B
Text
$NetBSD: patch-ae,v 1.3 2008/07/13 15:00:48 obache Exp $
|
|
|
|
--- display/vgl/visual.c.orig 2008-06-05 08:54:51 +0300
|
|
+++ display/vgl/visual.c 2008-06-05 08:55:35 +0300
|
|
@@ -210,13 +210,12 @@ static int GGIopen(ggi_visual *vis, stru
|
|
error = GGI_ENOMEM;
|
|
goto error;
|
|
}
|
|
- VGL_PRIV(vis) = malloc(sizeof(struct vgl_priv));
|
|
- if (VGL_PRIV(vis) == NULL) {
|
|
+ LIBGGI_PRIVATE(vis) = priv = malloc(sizeof(struct vgl_priv));
|
|
+ if (priv == NULL) {
|
|
do_cleanup(vis);
|
|
error = GGI_ENOMEM;
|
|
goto error;
|
|
}
|
|
- priv = VGL_PRIV(vis);
|
|
memset(priv, 0, sizeof(*priv));
|
|
|
|
memset(priv->vgl_palred, 0, sizeof(priv->vgl_palred));
|