]> sourceware.org Git - newlib-cygwin.git/commitdiff
* mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 18 Mar 2011 13:56:56 +0000 (13:56 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 18 Mar 2011 13:56:56 +0000 (13:56 +0000)
empty strings or suffer a SEGV.  Drop second parameter in call to
build_fh_dev.

winsup/cygwin/ChangeLog
winsup/cygwin/mmap.cc

index 2db0afe157015fa4d107747672bc0629291c77a7..0bc042f242a58fe706d2ab516cf01a44caf8dbe8 100644 (file)
@@ -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>
 
        * mmap.cc (class mmap_record): Pack 4 byte-aligned.  Convert member dev
index 4d29d5f5c094f05b729ca904db028e38aa422a4c..91c2d7bc762703d60a14cff0be56a8115c4b9078 100644 (file)
@@ -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;
 }
This page took 0.035149 seconds and 5 git commands to generate.