Add an assertion to Person_print
This commit is contained in:
parent
01348b1436
commit
6ea704fe5b
@ -33,6 +33,8 @@ void Person_destroy(struct Person *who)
|
||||
|
||||
void Person_print(struct Person *who)
|
||||
{
|
||||
assert(who != NULL);
|
||||
|
||||
printf("Name: %s\n", who->name);
|
||||
printf("\tAge: %d\n", who->age);
|
||||
printf("\tHeight: %d\n", who->height);
|
||||
|
Loading…
Reference in New Issue
Block a user