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

Fix potentially uninitialized use.

parent 84e4c3a5
......@@ -2299,16 +2299,16 @@ int gridCompare(int gridID, const grid_t *grid)
((grid->xvals == NULL) ^ (gridRef->xvals == NULL)) &&
((grid->yvals == NULL) ^ (gridRef->yvals == NULL)) )
{
int nvertexA, nvertexB, numberA, numberB,
positionA, positionB;
int nvertexA, nvertexB, numberA, numberB;
differ = ( (nvertexA = grid->nvertex)
&& (nvertexB = gridRef->nvertex)
&& (nvertexA != nvertexB) )
|| ( (numberA = grid->number)
&& (numberB = gridRef->number)
&& (numberA != numberB) )
|| ( (numberA && numberB)
&& (positionA = grid->position) != (positionB = gridRef->position) );
|| (numberA = grid->number, numberB = gridRef->number,
( (numberA)
&& numberB
&& (numberA != numberB) )
|| ( (numberA && numberB)
&& (grid->position) != (gridRef->position) ) );
}
else if ( !differ )
{
......
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