mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-18 15:35:55 +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
@@ -165,7 +165,6 @@ WMFontPanel *WMGetFontPanel(WMScreen * scr)
|
||||
return scr->sharedFontPanel;
|
||||
|
||||
panel = wmalloc(sizeof(FontPanel));
|
||||
memset(panel, 0, sizeof(FontPanel));
|
||||
|
||||
panel->win = WMCreateWindow(scr, "fontPanel");
|
||||
/* WMSetWidgetBackgroundColor(panel->win, WMWhiteColor(scr)); */
|
||||
@@ -461,7 +460,6 @@ static void addTypefaceToXftFamily(Family * fam, char *style)
|
||||
}
|
||||
|
||||
face = wmalloc(sizeof(Typeface));
|
||||
memset(face, 0, sizeof(Typeface));
|
||||
|
||||
face->typeface = wstrdup(style);
|
||||
face->sizes = WMCreateArray(4);
|
||||
|
||||
Reference in New Issue
Block a user