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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user