mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
No need to call memset after wmalloc
memset is the last function call in wmalloc, just before it returns the newly allocated memory. Therefore it is not needed to call it again after wmalloc call. Although I would prefer to switch wmalloc to a calloc-based wcalloc function, the compatibility of WINGs for old apps should be kept.
This commit is contained in:
committed by
Carlos R. Mafra
parent
aee0ad45f2
commit
cc30444dda
@@ -813,7 +813,6 @@ WDDomain *wDefaultsInitDomain(char *domain, Bool requireDictionary)
|
||||
}
|
||||
|
||||
db = wmalloc(sizeof(WDDomain));
|
||||
memset(db, 0, sizeof(WDDomain));
|
||||
db->domain_name = domain;
|
||||
db->path = wdefaultspathfordomain(domain);
|
||||
the_path = db->path;
|
||||
|
||||
Reference in New Issue
Block a user