From 367ea0e6d6fd4589f0d9c33a5a88f95d732f68e3 Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Mon, 21 Mar 2022 20:38:28 +0900 Subject: [PATCH] add initializer on use_tinning_kit() If poly_when_stoned() is true, an uninitialized buffer kbuf[] is passed to instapetrify(). Although instapetrify() doesn't access it in that situation for now, it should be initialized anyway for readability. --- src/apply.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apply.c b/src/apply.c index 2dc448b69..2d025381e 100644 --- a/src/apply.c +++ b/src/apply.c @@ -1940,6 +1940,7 @@ use_tinning_kit(struct obj *obj) if (poly_when_stoned(g.youmonst.data)) { You("tin %s without wearing gloves.", corpse_name); + kbuf[0] = '\0'; } else { pline("Tinning %s without wearing gloves is a fatal mistake...", corpse_name);