submodule.c: duplicate real_path's return value
commitb932cb93335d70b47c1b97863c27f56d508fb4fa
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 23 Apr 2013 11:00:02 +0000 (23 21:00 +1000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Apr 2013 14:57:13 +0000 (23 07:57 -0700)
tree57a65260acabb33aa3391731552fcaf3b7bc6489
parent0a9abf502f9a0284149d0f7aaab0074b640d93bd
submodule.c: duplicate real_path's return value

real_path returns the pointer to an internal buffer, which may be
overwritten by the next real_path call. Duplicate the return value for
safety.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c