Skip to content

Commit

Permalink
Plan 9 from Bell Labs 2003-05-11
Browse files Browse the repository at this point in the history
  • Loading branch information
0intro committed May 11, 2003
1 parent 131b3c5 commit 89e5e8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion port/pgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ dupfgrp(Fgrp *f)
if(i != 0)
new->nfd += DELTAFD - i;
new->fd = malloc(new->nfd*sizeof(Chan*));
if(new->fd == 0){
if(new->fd == nil){
unlock(f);
free(new);
error("no memory for fgrp");
}
new->ref = 1;
Expand Down

0 comments on commit 89e5e8d

Please sign in to comment.