Make some strings const
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
66eb64cba6
commit
554fe20d80
@ -329,7 +329,7 @@ int cmd_rev_parse(int argc, const char **argv, char **envp)
|
||||
dotdot = strstr(arg, "..");
|
||||
if (dotdot) {
|
||||
unsigned char end[20];
|
||||
char *next = dotdot + 2;
|
||||
const char *next = dotdot + 2;
|
||||
const char *this = arg;
|
||||
*dotdot = 0;
|
||||
if (!*next)
|
||||
|
Reference in New Issue
Block a user