summaryrefslogtreecommitdiff
path: root/build/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/spec.c')
-rw-r--r--build/spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/spec.c b/build/spec.c
index c7bfcf44b..f6c1882cf 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -105,7 +105,7 @@ Package newPackage(Spec spec)
Package p;
Package pp;
- p = xmalloc(sizeof(*p));
+ p = xcalloc(1, sizeof(*p));
p->header = headerNew();
p->icon = NULL;