X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=help.c;h=0824c25226ad7b106e56d1b7c23fad40eed92749;hb=bd45fec8397f1f0804db1d18af7193be323b0326;hp=9ecdefdb03be7fac8d9283c93f2320f71bd062d6;hpb=2ad6ba353aa3815894674a0dee56aa75f8a5fc7b;p=git.git diff --git a/help.c b/help.c index 9ecdefdb0..0824c2522 100644 --- a/help.c +++ b/help.c @@ -184,7 +184,7 @@ static void show_man_page(const char *git_cmd) page = git_cmd; else { int page_len = strlen(git_cmd) + 4; - char *p = malloc(page_len + 1); + char *p = xmalloc(page_len + 1); strcpy(p, "git-"); strcpy(p + 4, git_cmd); p[page_len] = 0;