summaryrefslogtreecommitdiffstats
path: root/tools/h5import
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-09-16 15:23:16 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-09-16 15:23:16 (GMT)
commitd90e4acfa7b0d1be202d56441e9912417147af26 (patch)
tree82b9d8588618c73b993520a0a888988bd2b9ce7b /tools/h5import
parent2385b2b0ad832825bd9009237149e1581326c044 (diff)
downloadhdf5-d90e4acfa7b0d1be202d56441e9912417147af26.zip
hdf5-d90e4acfa7b0d1be202d56441e9912417147af26.tar.gz
hdf5-d90e4acfa7b0d1be202d56441e9912417147af26.tar.bz2
[svn-r27801] Minor warning fixes in the tools.
Tested on: jam (too minor for h5committest)
Diffstat (limited to 'tools/h5import')
-rw-r--r--tools/h5import/h5import.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c
index 96fb6f9..9617df3 100644
--- a/tools/h5import/h5import.c
+++ b/tools/h5import/h5import.c
@@ -265,7 +265,7 @@ err:
static int gtoken(char *s)
{
size_t len;
- int token;
+ int token = ERR;
const char *err1 = "Illegal argument: %s.\n";
@@ -995,16 +995,16 @@ out:
*/
static int processStrHDFData(FILE *strm, struct Input *in, hid_t file_id)
{
- hid_t group_id;
- hid_t dset_id;
- hid_t space_id;
- hid_t mspace_id;
- hid_t type_id;
- hid_t handle;
- char *str1 = NULL;
- char *str2 = NULL;
- char *str3 = NULL;
- char str[1024] = "";
+ hid_t group_id = -1;
+ hid_t dset_id = -1;
+ hid_t space_id = -1;
+ hid_t mspace_id = -1;
+ hid_t type_id = -1;
+ hid_t handle = -1;
+ char *str1 = NULL;
+ char *str2 = NULL;
+ char *str3 = NULL;
+ char str[1024] = "";
int j;
hsize_t line;