Commit b67987b2 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Minor beautification of cdiVlistAddGridIfNew.

parent a57c0f6a
......@@ -4748,8 +4748,7 @@ struct addIffNewRes cdiVlistAddGridIfNew(int vlistID, grid_t *grid, int mode)
if ( mode == 0 )
for (unsigned index = 0; index < ngrids; index++ )
{
gridID = vlistptr->gridIDs[index];
if ( gridID != UNDEFID )
if ( (gridID = vlistptr->gridIDs[index]) != UNDEFID )
{
if ( gridCompare(gridID, grid) == 0 )
{
......@@ -4758,7 +4757,8 @@ struct addIffNewRes cdiVlistAddGridIfNew(int vlistID, grid_t *grid, int mode)
}
}
else
Error("Internal problem: undefined gridID %d!", gridID);
Error("Internal problem: undefined gridID in vlist "
"%d, position %u!", vlistID, index);
}
......
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