From 012d995ab152a6d5c1d18ccfa427d8132a0096b3 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 28 Feb 2001 05:40:45 +0000 Subject: [PATCH] Fixed uninitialized pointer in wtext.c --- WINGs/wtext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WINGs/wtext.c b/WINGs/wtext.c index d99bfc78..9d2d62db 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -3101,14 +3101,14 @@ WMCreateTextForDocumentType(WMWidget *parent, WMAction *parser, WMAction *writer return NULL; } + dpy = tPtr->view->screen->display; + scr = tPtr->view->screen; + tPtr->view->self = tPtr; tPtr->view->attribs.cursor = scr->textCursor; tPtr->view->attribFlags |= CWOverrideRedirect | CWCursor; W_ResizeView(tPtr->view, 250, 200); - dpy = tPtr->view->screen->display; - scr = tPtr->view->screen; - tPtr->dColor = WMWhiteColor(scr); tPtr->bgGC = WMColorGC(tPtr->dColor); W_SetViewBackgroundColor(tPtr->view, tPtr->dColor);