]> git.ipfire.org Git - thirdparty/git.git/commit - http-walker.c
use xstrdup instead of xmalloc + strcpy
authorJeff King <peff@peff.net>
Thu, 19 Jun 2014 21:19:43 +0000 (17:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2014 22:20:53 +0000 (15:20 -0700)
commit95244ae3dd49b3eed4dbfe09299b9d8847622218
treeb70932b2e4e8205c2f6f6b0cfcb88ca172c2d9d9
parentfa3f60b783b42e0d07c667a8f582c3df12791cec
use xstrdup instead of xmalloc + strcpy

This is one line shorter, and makes sure the length in the
malloc and copy steps match.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
http-push.c
http-walker.c