mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 14:15:46 +01:00
WINGs: Make wmalloc() intialize allocated memory to 0
- Accordingly remove individual memsets, for now from WINGs only. Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
committed by
Carlos R. Mafra
parent
cf2301a048
commit
a71a604ab1
@@ -170,7 +170,6 @@ static WMFilePanel *makeFilePanel(WMScreen * scrPtr, char *name, char *title)
|
||||
WMPixmap *icon;
|
||||
|
||||
fPtr = wmalloc(sizeof(WMFilePanel));
|
||||
memset(fPtr, 0, sizeof(WMFilePanel));
|
||||
|
||||
fPtr->win = WMCreateWindowWithStyle(scrPtr, name, WMTitledWindowMask | WMResizableWindowMask);
|
||||
WMResizeWidget(fPtr->win, PWIDTH, PHEIGHT);
|
||||
|
||||
Reference in New Issue
Block a user