* dtable.cc (cygwin_attach_handle_to_fd): Defend against NULL return from
build_fh_*. (dtable::init_std_file_from_handle): Ditto. * mmap.cc (mmap_record::alloc_fh): Ditto. * path.cc (path_conv::check): Ditto.
This commit is contained in:
@ -526,7 +526,8 @@ mmap_record::alloc_fh ()
|
||||
fdev.name = fdev.native = "";
|
||||
fdev.parse (get_device ());
|
||||
fhandler_base *fh = build_fh_dev (fdev);
|
||||
fh->set_access (get_openflags ());
|
||||
if (fh)
|
||||
fh->set_access (get_openflags ());
|
||||
return fh;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user