cmd_config(): make a copy of path obtained from git_path()
commit3696a7c2d9a4f3227dd7719b734e9db242aae6af
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 16 Nov 2014 07:37:44 +0000 (16 08:37 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Nov 2014 17:24:35 +0000 (17 09:24 -0800)
treeef0c2b3226343ba2aacf6d436d814eca3a4eaee3
parent49e0c5ad0ab95e450138105ff27688861a4a1557
cmd_config(): make a copy of path obtained from git_path()

The strings returned by git_path() are recycled after a while.  Make
a copy of the config filename rather than holding onto the return
value from git_path().

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c