summaryrefslogtreecommitdiff
path: root/wk5/pset/inheritance
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-14 04:42:31 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-14 04:42:31 +0000
commitc0d573bc7519ddf43c301658c084bbb83a812b27 (patch)
treed8823c441bb5bdabd8b25945512c47ca8775ec13 /wk5/pset/inheritance
parent22ca1f9e2d4643f3970942766f486c798d2f4366 (diff)
Sat, Apr 13, 2024, 9:42 PM -07:00
Diffstat (limited to 'wk5/pset/inheritance')
-rw-r--r--wk5/pset/inheritance/inheritance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk5/pset/inheritance/inheritance.c b/wk5/pset/inheritance/inheritance.c
index 6d96d13..172af27 100644
--- a/wk5/pset/inheritance/inheritance.c
+++ b/wk5/pset/inheritance/inheritance.c
@@ -73,7 +73,7 @@ person *create_family(int generations)
}
// TODO: Return newly created person
- return NULL;
+ return new;
}
// Free `p` and all ancestors of `p`.