mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-23 07:25:48 +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
@@ -263,10 +263,7 @@ WMUserDefaults *WMGetStandardUserDefaults(void)
|
||||
|
||||
/* we didn't found the database we are looking for. Go read it. */
|
||||
defaults = wmalloc(sizeof(WMUserDefaults));
|
||||
memset(defaults, 0, sizeof(WMUserDefaults));
|
||||
|
||||
defaults->defaults = WMCreatePLDictionary(NULL, NULL);
|
||||
|
||||
defaults->searchList = wmalloc(sizeof(WMPropList *) * 3);
|
||||
|
||||
/* application domain */
|
||||
@@ -355,12 +352,9 @@ WMUserDefaults *WMGetDefaultsFromPath(char *path)
|
||||
}
|
||||
}
|
||||
|
||||
/* we didn't found the database we are looking for. Go read it. */
|
||||
/* we didn't found the database we are looking for. Go read it. XXX wtf? */
|
||||
defaults = wmalloc(sizeof(WMUserDefaults));
|
||||
memset(defaults, 0, sizeof(WMUserDefaults));
|
||||
|
||||
defaults->defaults = WMCreatePLDictionary(NULL, NULL);
|
||||
|
||||
defaults->searchList = wmalloc(sizeof(WMPropList *) * 2);
|
||||
|
||||
/* the domain we want, go in the first position */
|
||||
|
||||
Reference in New Issue
Block a user