allow readobjnam arg to be nonnull

Have it key on &do_random_str instead of NULL,
and modify makewish() in zap.c for the new protocol.
This commit is contained in:
nhmall
2023-12-16 19:30:34 -05:00
parent 3e83d23b19
commit 10f29a9760
5 changed files with 8 additions and 8 deletions

View File

@@ -1069,8 +1069,10 @@ decl_globals_init(void)
gu.urace = urace_init_data;
}
/* fields in 'hands_obj' don't matter, just its distinct address */
/* fields in 'hands_obj' and contents of 'do_random_str' don't matter,
* just their distinct addresses */
struct obj hands_obj = DUMMY;
char do_random_str = '\0';
/* gcc 12.2's static analyzer thinks that some fields of gc.context.victual
are uninitialized when compiling 'bite(eat.c)' but that's impossible;