mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 12:55:47 +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
@@ -110,7 +110,6 @@ WMList *WMCreateList(WMWidget * parent)
|
||||
W_Screen *scrPtr = W_VIEW(parent)->screen;
|
||||
|
||||
lPtr = wmalloc(sizeof(List));
|
||||
memset(lPtr, 0, sizeof(List));
|
||||
|
||||
lPtr->widgetClass = WC_List;
|
||||
|
||||
@@ -187,7 +186,6 @@ WMListItem *WMInsertListItem(WMList * lPtr, int row, char *text)
|
||||
CHECK_CLASS(lPtr, WC_List);
|
||||
|
||||
item = wmalloc(sizeof(WMListItem));
|
||||
memset(item, 0, sizeof(WMListItem));
|
||||
item->text = wstrdup(text);
|
||||
|
||||
row = WMIN(row, WMGetArrayItemCount(lPtr->items));
|
||||
|
||||
Reference in New Issue
Block a user