mirror of
https://github.com/git/git.git
synced 2026-01-18 14:44:28 +00:00
msvc: mark a variable as non-const
VS2015 complains when using a const pointer in memcpy()/free(). Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Jameson Miller
parent
33b9a86837
commit
321be414a4
@@ -1659,7 +1659,10 @@ static int try_shell_exec(const char *cmd, char *const *argv)
|
||||
prog = path_lookup(interpr, 1);
|
||||
if (prog) {
|
||||
int argc = 0;
|
||||
const char **argv2;
|
||||
#ifndef _MSC_VER
|
||||
const
|
||||
#endif
|
||||
char **argv2;
|
||||
while (argv[argc]) argc++;
|
||||
ALLOC_ARRAY(argv2, argc + 1);
|
||||
argv2[0] = (char *)cmd; /* full path to the script file */
|
||||
|
||||
Reference in New Issue
Block a user