From ccbc7fca21d59b18858259767c92389e78f1ad90 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 18 Mar 2011 13:56:56 +0000 Subject: * 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. --- winsup/cygwin/mmap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/mmap.cc') 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; } -- cgit v1.2.3