Skip to content

Commit c0958e9

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 aa8ee54 commit c0958e9

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
@@ -1579,7 +1579,10 @@ static int try_shell_exec(const char *cmd, char *const *argv)
15791579
prog = path_lookup(interpr, 1);
15801580
if (prog) {
15811581
int argc = 0;
1582-
const char **argv2;
1582+
#ifndef _MSC_VER
1583+
const
1584+
#endif
1585+
char **argv2;
15831586
while (argv[argc]) argc++;
15841587
ALLOC_ARRAY(argv2, argc + 1);
15851588
argv2[0] = (char *)cmd; /* full path to the script file */

0 commit comments

Comments
 (0)