From de9e39f7012690ef204f5660d8bb47970872d05a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 14 Sep 2003 01:58:03 +0000 Subject: * 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. --- winsup/cygwin/dcrt0.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') 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; } -- cgit v1.2.3