Commit 5cf3660e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistInqAttXXX: return -1 if attname not found

parent e723041b
......@@ -6,6 +6,7 @@
2014-07-25 Uwe Schulzweida
* vlistInqAtt: return -1 if attnum is out of range
* vlistInqAttXXX: return -1 if attname not found
2014-07-24 Uwe Schulzweida
......
......@@ -213,6 +213,10 @@ int vlistDelAtt(int vlistID, int varID, const char *name)
{
int status = CDI_NOERR;
UNUSED(vlistID);
UNUSED(varID);
UNUSED(name);
fprintf(stderr, "vlistDelAtt not implemented!\n");
return (status);
......@@ -278,11 +282,13 @@ int vlist_inq_att(int indtype, int vlistID, int varID, const char *name, size_t
else
{
Warning("Attribute %s has wrong data type!", name);
status = -2;
}
}
else
{
Warning("Internal problem, attribute %s not found!", name);
//Warning("Internal problem, attribute %s not found!", name);
status = -1;
}
return (status);
......
Markdown is supported
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