summaryrefslogtreecommitdiff
path: root/wk5/pset/inheritance/inheritance.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset/inheritance/inheritance.c')
-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`.