remote-curl: create copy of the service name
authorBrandon Williams <bmwill@google.com>
Thu, 15 Mar 2018 17:31:36 +0000 (10:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 19:01:09 +0000 (12:01 -0700)
commitf08a5d42ea0567af12e703948b6859e30129ec1c
tree0de640aad5aae1d040caf17ab548714cfa1b6453
parentf1f4d8acf400912a9e2a7b97080afced56719c29
remote-curl: create copy of the service name

Make a copy of the service name being requested instead of relying on
the buffer pointed to by the passed in 'const char *' to remain
unchanged.

Currently, all service names are string constants, but a subsequent
patch will introduce service names from external sources.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c