summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2015-10-05 13:46:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2015-10-05 13:46:42 (GMT)
commitc7c6623f284545f6605120c171e0c13da9d43b3e (patch)
treef87a54778343994246cf404b40eb4aa0fe4017cb /src/H5Pdcpl.c
parent914643490ab581c4b0bb78ca30a8e1fa520b4d6d (diff)
downloadhdf5-c7c6623f284545f6605120c171e0c13da9d43b3e.zip
hdf5-c7c6623f284545f6605120c171e0c13da9d43b3e.tar.gz
hdf5-c7c6623f284545f6605120c171e0c13da9d43b3e.tar.bz2
[svn-r27956] Description:
Minor code cleanups, preparing to merge to trunk. Tested on: MacOSX/64 10.10.5 (amazon) w/serial & parallel (h5committest not required on this branch)
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index f3acfe2..0677517 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -455,9 +455,6 @@ H5P__dcrt_layout_enc(const void *value, void **_pp, size_t *size)
/* number of entries */
*size += (size_t)8;
- /* NULL pointer to pass to H5S_encode */
- tmp_p = NULL;
-
/* Iterate over entries */
for(u = 0; u < layout->storage.u.virt.list_nused; u++) {
/* Source file name */
@@ -470,12 +467,14 @@ H5P__dcrt_layout_enc(const void *value, void **_pp, size_t *size)
/* Source selection */
tmp_size = (size_t)0;
+ tmp_p = NULL;
if(H5S_encode(layout->storage.u.virt.list[u].source_select, &tmp_p, &tmp_size) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTENCODE, FAIL, "unable to serialize source selection")
*size += tmp_size;
/* Virtual dataset selection */
tmp_size = (size_t)0;
+ tmp_p = NULL;
if(H5S_encode(layout->storage.u.virt.list[u].source_dset.virtual_select, &tmp_p, &tmp_size) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTENCODE, FAIL, "unable to serialize virtual selection")
*size += tmp_size;