summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index d5817fb3e..51cc55f25 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -231,10 +231,8 @@ quoted (char *cmd, int winshell)
{
char *p;
strcpy (cmd, cmd + 1);
- if ((p = strchr (cmd, quote)) != NULL)
+ if (*(p = strechr (cmd, quote)))
strcpy (p, p + 1);
- else
- p = strchr (cmd, '\0');
return p;
}