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.
This commit is contained in:
SHIRAKATA Kentaro
2022-03-21 20:38:28 +09:00
parent 167dec0d56
commit 367ea0e6d6

View File

@@ -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);