1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 04:44:16 +01:00

Fixed uninitialized pointer in wtext.c

This commit is contained in:
dan
2001-02-28 05:40:45 +00:00
parent 99defe80a5
commit 012d995ab1

View File

@@ -3101,14 +3101,14 @@ WMCreateTextForDocumentType(WMWidget *parent, WMAction *parser, WMAction *writer
return NULL; return NULL;
} }
dpy = tPtr->view->screen->display;
scr = tPtr->view->screen;
tPtr->view->self = tPtr; tPtr->view->self = tPtr;
tPtr->view->attribs.cursor = scr->textCursor; tPtr->view->attribs.cursor = scr->textCursor;
tPtr->view->attribFlags |= CWOverrideRedirect | CWCursor; tPtr->view->attribFlags |= CWOverrideRedirect | CWCursor;
W_ResizeView(tPtr->view, 250, 200); W_ResizeView(tPtr->view, 250, 200);
dpy = tPtr->view->screen->display;
scr = tPtr->view->screen;
tPtr->dColor = WMWhiteColor(scr); tPtr->dColor = WMWhiteColor(scr);
tPtr->bgGC = WMColorGC(tPtr->dColor); tPtr->bgGC = WMColorGC(tPtr->dColor);
W_SetViewBackgroundColor(tPtr->view, tPtr->dColor); W_SetViewBackgroundColor(tPtr->view, tPtr->dColor);