summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2012-04-02 18:28:14 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2012-04-02 18:28:14 (GMT)
commitd41e30a716594bf4a353ad3a178428c839d05d80 (patch)
tree21821547abfd2ad79ecc9df519314238bfa96764 /tools/lib/h5tools_str.c
parentbd26865f7d69fed1e926e6a3ec5f8653ae0eb6da (diff)
downloadhdf5-d41e30a716594bf4a353ad3a178428c839d05d80.zip
hdf5-d41e30a716594bf4a353ad3a178428c839d05d80.tar.gz
hdf5-d41e30a716594bf4a353ad3a178428c839d05d80.tar.bz2
[svn-r22241] Fix the failures for h5watch due to format indentation.
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 70787df..9dac227 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -1020,8 +1020,8 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
}
}
h5tools_str_sprint(str, info, container, listv[curr_field]->last_tid, cp_vp + listv[curr_field]->tot_offset, ctx);
- if(ctx->indent_level >= 0)
- for(x = ctx->indent_level; x >= 0; x--)
+ if(ctx->indent_level > 0)
+ for(x = ctx->indent_level; x > 0; x--)
h5tools_str_append(str, "%s", OPT(info->cmpd_suf, "}"));
ctx->indent_level = save_indent_level;
}