aboutsummaryrefslogtreecommitdiff
path: root/init-db.c
diff options
context:
space:
mode:
Diffstat (limited to 'init-db.c')
-rw-r--r--init-db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-db.c b/init-db.c
index dad06351c..83f95e8b9 100644
--- a/init-db.c
+++ b/init-db.c
@@ -34,7 +34,7 @@ int main(int argc, char **argv)
fprintf(stderr, "defaulting to local storage area\n");
}
len = strlen(sha1_dir);
- path = malloc(len + 40);
+ path = xmalloc(len + 40);
memcpy(path, sha1_dir, len);
safe_create_dir(sha1_dir);