]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/config.c
get_urlmatch: avoid useless strbuf write
authorJeff King <peff@peff.net>
Thu, 20 Aug 2015 14:49:45 +0000 (10:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Aug 2015 20:16:50 +0000 (13:16 -0700)
commita92330d21c13cf244d8045f5c9d1df6e63893d58
tree5498d804f7f465b9e6240059166e97ae29fa51e9
parentf2259877531ed2a58ec04aeaeb6beb5183f81f92
get_urlmatch: avoid useless strbuf write

We create a strbuf only to insert a single string, pass the
resulting buffer to a function (which does not modify the
string), and then free it. We can just pass the original
string instead.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c