commit | a92330d21c13cf244d8045f5c9d1df6e63893d58 | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Thu Aug 20 10:49:45 2015 -0400 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Aug 20 13:16:50 2015 -0700 |
tree | 5498d804f7f465b9e6240059166e97ae29fa51e9 | |
parent | f2259877531ed2a58ec04aeaeb6beb5183f81f92 [diff] |
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>