summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_parse.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-08-17 19:54:42 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-08-17 19:54:42 (GMT)
commit8c0f8b1a959993a1f4b87e61c4b4e57b8f2b11e7 (patch)
treeb5e9b4fecec9b22663c8521103b2f827912038ec /tools/h5repack/h5repack_parse.c
parentad655bf083814ff768849a994c834b2010d67bda (diff)
downloadhdf5-8c0f8b1a959993a1f4b87e61c4b4e57b8f2b11e7.zip
hdf5-8c0f8b1a959993a1f4b87e61c4b4e57b8f2b11e7.tar.gz
hdf5-8c0f8b1a959993a1f4b87e61c4b4e57b8f2b11e7.tar.bz2
[svn-r9106] Purpose:
bug fix Description: the option CHUNK:NONE (remove chunking ) was not setting the layout to contiguous Solution: Platforms tested: linux solaris AIX Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_parse.c')
-rw-r--r--tools/h5repack/h5repack_parse.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack_parse.c b/tools/h5repack/h5repack_parse.c
index e6974c0..8f548b0 100644
--- a/tools/h5repack/h5repack_parse.c
+++ b/tools/h5repack/h5repack_parse.c
@@ -383,6 +383,11 @@ obj_list_t* parse_layout(const char *str,
char sobj[MAX_NC_NAME];
char sdim[10];
char slayout[10];
+
+
+ memset(sdim, '\0', sizeof(sdim));
+ memset(sobj, '\0', sizeof(sobj));
+ memset(slayout, '\0', sizeof(slayout));
/* check for the end of object list and number of objects */
for ( i=0, n=0; i<len; i++)
@@ -481,7 +486,9 @@ obj_list_t* parse_layout(const char *str,
sdim[k]=c;
k++; /*increment sdim index */
- if (!isdigit(c) && c!='x' && c!='N' && c!='O' && c!='N' && c!='E'){
+ if (!isdigit(c) && c!='x'
+ && c!='N' && c!='O' && c!='N' && c!='E'
+ ){
if (obj_list) free(obj_list);
printf("Parse layout error: <%s> Not a valid character in <%s>\n",
sdim,str);