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:
authorCorinna Vinschen <corinna@vinschen.de>2011-03-18 16:56:56 +0300
committerCorinna Vinschen <corinna@vinschen.de>2011-03-18 16:56:56 +0300
commitccbc7fca21d59b18858259767c92389e78f1ad90 (patch)
tree5427b6bef1cabb4efb689e5e8c6fcb8322136b71 /winsup/cygwin/mmap.cc
parentbf69faeb0db5c4b237f38326b20e32ff7d1ad9ba (diff)
* mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
empty strings or suffer a SEGV. Drop second parameter in call to build_fh_dev.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 4d29d5f5c..91c2d7bc7 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -522,8 +522,9 @@ mmap_record::alloc_fh ()
of the correct type to be sure to call the method of the
correct class. */
device fdev;
+ fdev.name = fdev.native = "";
fdev.parse (get_device ());
- fhandler_base *fh = build_fh_dev (fdev, "");
+ fhandler_base *fh = build_fh_dev (fdev);
fh->set_access (get_openflags ());
return fh;
}