mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
removed unneeded variable
This commit is contained in:
parent
38e7cf4ae4
commit
e1cd4018c5
@ -153,7 +153,6 @@ nc4_get_att_special(NC_FILE_INFO_T* h5, const char* name,
|
|||||||
int
|
int
|
||||||
NC4_HDF5_rename_att(int ncid, int varid, const char *name, const char *newname)
|
NC4_HDF5_rename_att(int ncid, int varid, const char *name, const char *newname)
|
||||||
{
|
{
|
||||||
NC *nc;
|
|
||||||
NC_GRP_INFO_T *grp;
|
NC_GRP_INFO_T *grp;
|
||||||
NC_FILE_INFO_T *h5;
|
NC_FILE_INFO_T *h5;
|
||||||
NC_VAR_INFO_T *var = NULL;
|
NC_VAR_INFO_T *var = NULL;
|
||||||
@ -174,9 +173,9 @@ NC4_HDF5_rename_att(int ncid, int varid, const char *name, const char *newname)
|
|||||||
return NC_EMAXNAME;
|
return NC_EMAXNAME;
|
||||||
|
|
||||||
/* Find info for this file, group, and h5 info. */
|
/* Find info for this file, group, and h5 info. */
|
||||||
if ((retval = nc4_find_nc_grp_h5(ncid, &nc, &grp, &h5)))
|
if ((retval = nc4_find_grp_h5(ncid, &grp, &h5)))
|
||||||
return retval;
|
return retval;
|
||||||
assert(h5 && grp && h5);
|
assert(h5 && grp);
|
||||||
|
|
||||||
/* If the file is read-only, return an error. */
|
/* If the file is read-only, return an error. */
|
||||||
if (h5->no_write)
|
if (h5->no_write)
|
||||||
|
Loading…
Reference in New Issue
Block a user