summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-02-04 16:06:38 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-02-04 16:06:38 (GMT)
commit57da3b7db60ab6dd29edfef4116b58dfc6f66b08 (patch)
tree777a15e1d20826121f431efd0c6a519a6d7a7f31 /src
parentc746447b0dccc66e89038e2eae93cc88db67f825 (diff)
downloadhdf5-57da3b7db60ab6dd29edfef4116b58dfc6f66b08.zip
hdf5-57da3b7db60ab6dd29edfef4116b58dfc6f66b08.tar.gz
hdf5-57da3b7db60ab6dd29edfef4116b58dfc6f66b08.tar.bz2
[svn-r29043] Fixes to make relative external storage work on Windows. Part of HDFFV-8740.
- Fixed typo in Wsetenv(). - Changed HDoff_t back to off_t in test/external.c. The function signature is off_t so the types must match or you can get conversion errors. Tested on 64-bit Windows 10 w/ VS 2015
Diffstat (limited to 'src')
-rw-r--r--src/H5system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5system.c b/src/H5system.c
index 420ec85..eb09b15 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -813,8 +813,8 @@ Wsetenv(const char *name, const char *value, int overwrite)
*/
if(!overwrite) {
err = getenv_s(&bufsize, NULL, 0, name);
- if(err || bufsize)
- return (int)err
+ if (err || bufsize)
+ return (int)err;
} /* end if */
return (int)_putenv_s(name, value);