* 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.
This commit is contained in:
parent
bf69faeb0d
commit
ccbc7fca21
|
@ -1,3 +1,9 @@
|
||||||
|
2011-03-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2011-03-18 Corinna Vinschen <corinna@vinschen.de>
|
2011-03-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mmap.cc (class mmap_record): Pack 4 byte-aligned. Convert member dev
|
* mmap.cc (class mmap_record): Pack 4 byte-aligned. Convert member dev
|
||||||
|
|
|
@ -522,8 +522,9 @@ mmap_record::alloc_fh ()
|
||||||
of the correct type to be sure to call the method of the
|
of the correct type to be sure to call the method of the
|
||||||
correct class. */
|
correct class. */
|
||||||
device fdev;
|
device fdev;
|
||||||
|
fdev.name = fdev.native = "";
|
||||||
fdev.parse (get_device ());
|
fdev.parse (get_device ());
|
||||||
fhandler_base *fh = build_fh_dev (fdev, "");
|
fhandler_base *fh = build_fh_dev (fdev);
|
||||||
fh->set_access (get_openflags ());
|
fh->set_access (get_openflags ());
|
||||||
return fh;
|
return fh;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue