Skip to content

Commit 60331f8

Browse files
jeffhostetlerdscho
authored andcommitted
msvc: mark a variable as non-const
VS2015 complains when using a const pointer in memcpy()/free(). Signed-off-by: Jeff Hostetler <[email protected]>
1 parent c13c2bc commit 60331f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compat/mingw.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,10 @@ static int try_shell_exec(const char *cmd, char *const *argv)
15531553
if (prog) {
15541554
int exec_id;
15551555
int argc = 0;
1556-
const char **argv2;
1556+
#ifndef _MSC_VER
1557+
const
1558+
#endif
1559+
char **argv2;
15571560
while (argv[argc]) argc++;
15581561
ALLOC_ARRAY(argv2, argc + 1);
15591562
argv2[0] = (char *)cmd; /* full path to the script file */

0 commit comments

Comments
 (0)