consolidate two copies of new style object header parsing code.
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index bd07289d71a75ad0280bae21c64c4c4be86f80d2..05871ad42c8c20999e2dd977ea6033f38614e862 100644 (file)
--- a/git.c
+++ b/git.c
@@ -29,7 +29,7 @@ static void prepend_to_path(const char *dir, int len)
 
        path_len = len + strlen(old_path) + 1;
 
-       path = malloc(path_len + 1);
+       path = xmalloc(path_len + 1);
 
        memcpy(path, dir, len);
        path[len] = ':';