summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-03-23 17:42:06 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-03-23 17:42:06 (GMT)
commit5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7 (patch)
treeac24638ebced42fb499ad3e526781b0a6687c5fa /tools/lib/h5tools_str.c
parent710d1caf54cc4edb47ef83280b6d5a1af445b9d1 (diff)
downloadhdf5-5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7.zip
hdf5-5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7.tar.gz
hdf5-5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7.tar.bz2
[svn-r29534] Normalization w/ revise_chunks in preparation for big merge.
tools directory Also fixes a minor Java test output error. Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial w/ Java, Fortran, & C++
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index bdb82a4..13c6a20 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -267,6 +267,9 @@ h5tools_str_fmt(h5tools_str_t *str/*in,out*/, size_t start, const char *fmt)
{
char _temp[1024], *temp = _temp;
+ HDassert(str);
+ HDassert(fmt);
+
/* If the format string is simply "%s" then don't bother doing anything */
if (!HDstrcmp(fmt, "%s"))
return str->s;