[svn-r2922] Purpose:

Bug fix
Description:
    [Most] SGIs failed on dumping VL data during the daily tests they
    seem to be initializing variables differently, exposing a bug in dumping
    datasets with scalar dataspaces.

    Also, clean up code to get rid of compiler warnings.
Solution:
    Initilialize variable correctly.
Platforms tested:
    SGI IRIX 6.5 (paz)
This commit is contained in:
Quincey Koziol 2000-11-15 12:12:03 -05:00
parent 710bf78e21
commit 825e9ff8ff

View File

@ -1534,8 +1534,8 @@ h5dump_simple_dset(FILE *stream, const h5dump_t *info, hid_t dset,
return -1;
/* Print the data */
flags = (((elmtno == 0) ? START_OF_DATA : 0) |
(((elmtno + hs_nelmts) >= p_nelmts) ? END_OF_DATA : 0));
flags = (elmtno == 0) ? START_OF_DATA : 0;
flags |= ((elmtno + hs_nelmts) >= p_nelmts) ? END_OF_DATA : 0;
h5dump_simple_data(stream, info, dset, &ctx, flags, hs_nelmts,
p_type, sm_buf);
@ -2036,6 +2036,10 @@ recheck:
/* Create a simple memory space so that we can read in the hvl_t object */
mem_space = H5Screate_simple(0, NULL, NULL);
/* Fake dims[0] for ndim==0, FIX! */
if(ndims==0)
dims[0]=1;
for (i = 0; i < dims[0]; i++) {
herr_t ret;
hvl_t vldata;