Revert "allow readobjnam arg to be nonnull"

This reverts commit 10f29a9760.
This commit is contained in:
nhmall
2023-12-17 07:20:35 -05:00
parent e6c4838161
commit 3bf2f0daee
5 changed files with 8 additions and 8 deletions

View File

@@ -6024,7 +6024,7 @@ makewish(void)
if (++tries < MAXWISHTRY)
goto retry;
pline1(thats_enough_tries);
otmp = readobjnam(&do_random_str, (struct obj *) 0);
otmp = readobjnam((char *) 0, (struct obj *) 0);
if (!otmp)
return; /* for safety; should never happen */
} else if (otmp == &nothing) {