Commit d344234b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

defineAttributes: skip atts with len = 0

parent 43b37963
......@@ -447,6 +447,8 @@ void defineAttributes(int vlistID, int varID, int fileID, int ncvarID)
{
vlistInqAtt(vlistID, varID, iatt, attname, &atttype, &attlen);
if ( attlen == 0 ) continue;
if ( atttype == DATATYPE_TXT )
{
char *atttxt;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment