Commits

Jed Brown committed fe02ba7

DMPlex: work around -Wmaybe-uninitialized

Comments (0)

Files changed (1)

src/dm/impls/plex/plex.c

   PetscErrorCode ierr;
 
   PetscFunctionBeginHot;
+  *size = 0;
   for (p = 0; p < numPoints*2; p += 2) {
     const PetscInt point = points[p];
     const PetscInt o     = points[p+1];
   PetscErrorCode ierr;
 
   PetscFunctionBeginHot;
+  *size = 0;
   for (f = 0; f < numFields; ++f) {
     PetscInt fcomp, p;