mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Tentative fix for initial issue at http://github.com/Unidata/netcdf-c/issues/221 . investigating knock-on issues now.
This commit is contained in:
parent
e2eda755e3
commit
9791b1a397
29
gdb.txt
29
gdb.txt
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user