author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Thu, 11 Nov 2010 14:08:03 +0000 (21:08 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 7 Dec 2010 22:25:46 +0000 (14:25 -0800) | ||
commit | edc54fb5d4ce6774fc2ac76779bd57dc2d6ab189 | |
tree | 5d95bd32dc8e15db507f9c268c4a4c8a0ed346c3 | tree | snapshot |
parent | 309be813c9b75fed70f3a03bf803bf47c6670cfc | commit | diff |
Make prefix_path() return char* without const
prefix_path() allocates new buffer. There's no reason for it to keep
the buffer for itself and waste memory.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
prefix_path() allocates new buffer. There's no reason for it to keep
the buffer for itself and waste memory.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
setup.c | diff | blob | history |