Commits

Jed Brown committed 4ff43b2

DMPlex: fix my mistake using NULL in place of (int) 0

Comments (0)

Files changed (1)

src/dm/impls/plex/plex.c

   if (numPoints) PetscValidIntPointer(numPoints,4);
   if (points) PetscValidPointer(points,5);
   ierr = DMRestoreWorkArray(dm, 0, PETSC_INT, points);CHKERRQ(ierr);
-  if (numPoints) *numPoints = NULL;
+  if (numPoints) *numPoints = 0;
   PetscFunctionReturn(0);
 }
 
   PetscValidIntPointer(numCoveredPoints,4);
   PetscValidPointer(coveredPoints,5);
   ierr = DMRestoreWorkArray(dm, 0, PETSC_INT, (void*) coveredPoints);CHKERRQ(ierr);
-  *numCoveredPoints = NULL;
+  *numCoveredPoints = 0;
   PetscFunctionReturn(0);
 }