Tentative fix for initial issue at http://github.com/Unidata/netcdf-c/issues/221 . investigating knock-on issues now.

This commit is contained in:
Ward Fisher 2016-02-18 14:45:57 -07:00
parent e2eda755e3
commit 9791b1a397
2 changed files with 21 additions and 13 deletions

29
gdb.txt
View File

@ -1,15 +1,20 @@
set breakpoint pending on
break nc4hdf.c:872
command
watch provide_fill
c
end
break nc4hdf.c:974
command
print fill_value_size
end
#----------
# Solved first set of problems. On to second, in print_any_val.
#---------
#set breakpoint pending on
break nc4hdf.c:1126
#break nc4hdf.c:872
#command
#watch provide_fill
#c
#end
#break nc4hdf.c:974
#command
#print fill_value_size
#end
#break nc4hdf.c:1126

View File

@ -1147,6 +1147,7 @@ nc4_get_vara(NC *nc, int ncid, int varid, const size_t *startp,
filldata = (char *)data + real_data_size;
for (i = 0; i < fill_len; i++)
{
if (var->type_info->nc_type_class == NC_STRING)
{
if (*(char **)fillvalue)
@ -1157,7 +1158,9 @@ nc4_get_vara(NC *nc, int ncid, int varid, const size_t *startp,
else
*(char **)filldata = NULL;
}
else
else if(var->type_info->nc_type_class == NC_VLEN) {
continue;
} else
memcpy(filldata, fillvalue, file_type_size);
filldata = (char *)filldata + file_type_size;
}