* external.cc (cygwin_internal): In CW_CVT_MNT_OPTS case, initialize

flags with *pflags to restore original behaviour.
This commit is contained in:
Corinna Vinschen 2010-08-24 15:11:24 +00:00
parent bfb9c22649
commit 8ae578d6ae
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-24 Corinna Vinschen <corinna@vinschen.de>
* external.cc (cygwin_internal): In CW_CVT_MNT_OPTS case, initialize
flags with *pflags to restore original behaviour.
2010-08-21 Corinna Vinschen <corinna@vinschen.de> 2010-08-21 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (DLL_IMPORTS): Link against advapi32.a before kernel32.a. * Makefile.in (DLL_IMPORTS): Link against advapi32.a before kernel32.a.

View File

@ -507,7 +507,7 @@ cygwin_internal (cygwin_getinfo_types t, ...)
else else
{ {
unsigned *pflags = va_arg (arg, unsigned *); unsigned *pflags = va_arg (arg, unsigned *);
unsigned flags = 0; unsigned flags = pflags ? *pflags : 0;
if (fstab_read_flags (option_string, flags, true)) if (fstab_read_flags (option_string, flags, true))
{ {
if (pflags) if (pflags)