summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-14 01:58:03 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-14 01:58:03 +0000
commitde9e39f7012690ef204f5660d8bb47970872d05a (patch)
tree748830088a26a614380957f097ced9f236500b00 /winsup/cygwin/dcrt0.cc
parente306c058c7fdf8802fa7ffcba5968546d89ddf12 (diff)
downloadcygnal-de9e39f7012690ef204f5660d8bb47970872d05a.tar.gz
cygnal-de9e39f7012690ef204f5660d8bb47970872d05a.tar.bz2
cygnal-de9e39f7012690ef204f5660d8bb47970872d05a.zip
* Makefile.in: Make malloc_wrapper -fomit-frame-pointer.
* cygwin.din: Remove extraneous mallinfo definition. * dcrt0.cc (quoted): Use strechr for efficiency. * fhandler.cc (fhandler_base::write): Correctly use get_output_handle rather than get_handle. (fhandler_base::lseek): Use method for accessing name in debug output.
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;
}