Commit 58533ea7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridCompare: bug fix comparing uuid of unstructured grid.

parent c9f3778c
......@@ -3,6 +3,10 @@
* using CGRIBEX library version 1.9.1
* Version 1.9.5 released
2018-07-03 Uwe Schulzweida
* gridCompare: bug fix comparing uuid of unstructured grid
2018-07-02 Uwe Schulzweida
* reshGetStatus: applied patch from Kalle+Thomas
......
......@@ -2331,7 +2331,7 @@ bool gridCompare(int gridID, const grid_t *grid, bool coord_compare)
else
{
/* FIXME: not octet 0 but octet 7 is guaranteed non-zero for any non-NULL UUID */
differ = differ || (gridRef->uuid[0] && grid->uuid[0] && memcmp(gridRef->uuid, grid->uuid, CDI_UUID_SIZE) != 0);
differ |= ((gridRef->uuid[0] || grid->uuid[0]) && memcmp(gridRef->uuid, grid->uuid, CDI_UUID_SIZE));
if ( !differ &&
((grid->x.vals == NULL) ^ (gridRef->x.vals == NULL)) &&
......
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