Skip to content

Commit

Permalink
Initialize return for the optimized compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed May 16, 2011
1 parent 1d808bb commit bf5f561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/dunits.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ static dErr dUnitsGetEmptyUnit_Private(dUnits un,dUnit *unit)
dErr err;

dFunctionBegin;
*unit = NULL;
for (i=0; i<un->nalloc && un->list[i]; i++) ;
if (i == un->nalloc) dERROR(((dObject)un)->comm,PETSC_ERR_SUP,"reallocation not implemented");
err = dCallocA(1,&un->list[i]);dCHK(err);
Expand Down

0 comments on commit bf5f561

Please sign in to comment.