Commits

Jed Brown committed 51a778b Merge

Merge branch 'jed/doc-restore-zeros-pointer' into next

* jed/doc-restore-zeros-pointer:
DMPlex: fix my mistake using NULL in place of (int) 0

  • Participants
  • Parent commits bbc353f, 4ff43b2
  • Branches jed/next-seaice, knepley/fix-quadrature-order 3
    1. madams/sr-driver
    2. madams/sr1
    3. next-oct-2014

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);
 }