mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-08 18:52:31 +02: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:
1 parent
cf2301a048
commit
a71a604ab1
34 files changed
+4
-89
No files matched your search
@@ -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