Simplify empobj_chr_name() oops recovery
Return something usable instead of null. Matches obj_nameof(). Fixes those callers that neglected to check the value.
This commit is contained in:
parent
f99adf4b3c
commit
966b881667
2 changed files with 3 additions and 5 deletions
|
@ -92,7 +92,7 @@ empobj_chr_name(struct empobj *gp)
|
|||
return dchr[(int)gp->type].d_name;
|
||||
}
|
||||
CANT_REACH();
|
||||
return NULL;
|
||||
return "The Beast";
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue