aboutsummaryrefslogtreecommitdiff
path: root/checkout-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'checkout-cache.c')
-rw-r--r--checkout-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkout-cache.c b/checkout-cache.c
index d1661eb5f..a1ef9448c 100644
--- a/checkout-cache.c
+++ b/checkout-cache.c
@@ -39,7 +39,7 @@ static int force = 0, quiet = 0, not_new = 0;
static void create_directories(const char *path)
{
int len = strlen(path);
- char *buf = malloc(len + 1);
+ char *buf = xmalloc(len + 1);
const char *slash = path;
while ((slash = strchr(slash+1, '/')) != NULL) {