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)
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>
No differences found