diff options
author | Christopher Faylor <me@cgf.cx> | 2005-07-27 18:33:09 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-07-27 18:33:09 +0400 |
commit | a3c024d6ea4e67a72f03490ba937024b4f960f41 (patch) | |
tree | ecbc17dfd9583aa71a49cdb1588a9fd2a40db8f9 /winsup/cygwin/fhandler_clipboard.cc | |
parent | d08916dadeff9398f1b5cd3c134b4431fd9b363d (diff) |
* fhandler_clipboard.cc (fhandler_dev_clipboard::close): Set membuffer to NULL.
(fhandler_dev_clipboard::fixup_after_exec): Don't call close here. Just set
variables directly.
Diffstat (limited to 'winsup/cygwin/fhandler_clipboard.cc')
-rw-r--r-- | winsup/cygwin/fhandler_clipboard.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_clipboard.cc b/winsup/cygwin/fhandler_clipboard.cc index 84a6590b6..e5b6ebe5f 100644 --- a/winsup/cygwin/fhandler_clipboard.cc +++ b/winsup/cygwin/fhandler_clipboard.cc @@ -264,7 +264,10 @@ fhandler_dev_clipboard::close () eof = true; pos = 0; if (membuffer) - free (membuffer); + { + free (membuffer); + membuffer = NULL; + } msize = 0; } return 0; @@ -273,5 +276,7 @@ fhandler_dev_clipboard::close () void fhandler_dev_clipboard::fixup_after_exec () { - close (); + eof = false; + pos = msize = 0; + membuffer = NULL; } |