From d2101b0b9f00d8d8276a8ce04a7f65c13ffaacfa Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 5 Oct 2017 22:44:25 +0200 Subject: [PATCH] test: fix const qualification compiler warning `options.file` is of type `const char*`, don't assign it to a variable that is a non-const `char*`. The other way around is perfectly legal, though. PR-URL: https://github.com/libuv/libuv/pull/1588 Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil --- test/test-spawn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-spawn.c b/test/test-spawn.c index 91d831e1..d3958fe2 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1721,9 +1721,9 @@ TEST_IMPL(spawn_quoted_path) { RETURN_SKIP("Test for Windows"); #else char* quoted_path_env[2]; - options.file = "not_existing"; - args[0] = options.file; + args[0] = "not_existing"; args[1] = NULL; + options.file = args[0]; options.args = args; options.exit_cb = exit_cb; options.flags = 0;