1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-24 07:02:30 +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;
}
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);