diff options
author | Robb Matzke <matzke@llnl.gov> | 2000-12-29 18:35:28 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 2000-12-29 18:35:28 (GMT) |
commit | 0ac6ad10bd2e255b0c637072275de7e39fef18bd (patch) | |
tree | 59576402caabf8bac3d95a468419812b2f4e4198 | |
parent | 12dd74b53f175c654235d5d8e47d636e69392a5f (diff) | |
download | hdf5-0ac6ad10bd2e255b0c637072275de7e39fef18bd.zip hdf5-0ac6ad10bd2e255b0c637072275de7e39fef18bd.tar.gz hdf5-0ac6ad10bd2e255b0c637072275de7e39fef18bd.tar.bz2 |
[svn-r3225] ./hdf5/src/H5FDstream.c
2000-12-29 08:59:03 Robb Matzke <matzke@llnl.gov>
* H5FD_stream_query: The `flags' argument is advertised to be output only. Therefore I
added code to zero its value before the feature bits
are assigned.
-rw-r--r-- | src/H5FDstream.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/H5FDstream.c b/src/H5FDstream.c index 5c2e6ed..786eaa1 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -180,7 +180,7 @@ static const H5FD_class_t H5FD_stream_g = H5FD_stream_open, /* open */ H5FD_stream_close, /* close */ NULL, /* cmp */ - H5FD_stream_query, /*query */ + H5FD_stream_query, /* query */ NULL, /* alloc */ NULL, /* free */ H5FD_stream_get_eoa, /* get_eoa */ @@ -902,16 +902,17 @@ static herr_t H5FD_stream_close (H5FD_t *_stream) * *------------------------------------------------------------------------- */ -static herr_t H5FD_stream_query (const H5FD_t UNUSED *_f, - unsigned long *flags /* out */) +static herr_t +H5FD_stream_query(const H5FD_t UNUSED *_f, + unsigned long *flags/*out*/) { FUNC_ENTER (H5FD_stream_query, SUCCEED); /* Set the VFL feature flags that this driver supports */ - if (flags) - { - /* OK to perform data sieving for faster raw data reads & writes */ - *flags |= H5FD_FEAT_DATA_SIEVE; + if (flags) { + *flags = 0; + /* OK to perform data sieving for faster raw data reads & writes */ + *flags |= H5FD_FEAT_DATA_SIEVE; } FUNC_LEAVE (SUCCEED); |