[SV 42695] Fix compilation error on MS-Windows.

* main.c [WINDOWS32]: Don't declare 'program' as 'const char *',
since it is modified in 'main'.
This commit is contained in:
Eli Zaretskii 2014-07-12 13:01:18 +03:00
parent cab353d1dd
commit faeeb27166

6
main.c
View file

@ -480,7 +480,13 @@ static struct command_variable *command_variables;
/* The name we were invoked with. */
#ifdef WINDOWS32
/* On MS-Windows, we chop off the .exe suffix in 'main', so this
cannot be 'const'. */
char *program;
#else
const char *program;
#endif
/* Our current directory before processing any -C options. */