Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-06-19 18:39:00 +0400
committerChristopher Faylor <me@cgf.cx>2013-06-19 18:39:00 +0400
commit9e8cf6ebbd867983c2cf8e416213aca7a3a19bdc (patch)
tree2f769a8472e3d2126a4c33f6bfa346adcb27b757 /winsup/cygwin/spawn.cc
parent92d098c9cac11cc7b7b11e8fdae37ebbf8b7272b (diff)
* spawn.cc (child_info_spawn::worker): Eliminate wascygexec.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 89d4ddcb9..a566b4e9d 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -327,7 +327,6 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
tmp_pathbuf tp;
PWCHAR runpath = tp.w_get ();
int c_flags;
- bool wascygexec;
bool null_app_name = false;
STARTUPINFOW si = {};
@@ -371,7 +370,6 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
goto out;
}
- wascygexec = real_path.iscygexec ();
res = newargv.fixup (prog_arg, real_path, ext, p_type_exec);
if (res)
@@ -406,7 +404,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
}
else
{
- if (wascygexec)
+ if (real_path.iscygexec ())
newargv.dup_all ();
else if (!one_line.fromargv (newargv, real_path.get_win32 (),
real_path.iscygexec ()))