summaryrefslogtreecommitdiff
path: root/mktag.c
diff options
context:
space:
mode:
authorLibravatar Jonas Fonseca <fonseca@diku.dk>2006-09-01 00:32:39 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-31 16:24:39 -0700
commit2d7320d0b09d7a9aab4e5dbc5458f37bfb6ce9f5 (patch)
tree4fac98b5cb3155365498f5750f9550be977660ed /mktag.c
parentgit(7): move gitk(1) to the list of porcelain commands (diff)
downloadtgif-2d7320d0b09d7a9aab4e5dbc5458f37bfb6ce9f5.tar.xz
Use xmalloc instead of malloc
Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mktag.c')
-rw-r--r--mktag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mktag.c b/mktag.c
index be23e589fb..3448a5dde7 100644
--- a/mktag.c
+++ b/mktag.c
@@ -119,7 +119,7 @@ static int verify_tag(char *buffer, unsigned long size)
int main(int argc, char **argv)
{
unsigned long size = 4096;
- char *buffer = malloc(size);
+ char *buffer = xmalloc(size);
unsigned char result_sha1[20];
if (argc != 1)