From 43856fe023236c5a908cdaa30639a92a18a72e15 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 14 Apr 2022 18:59:03 +0300 Subject: [PATCH] Fix uninitialized var in dip --- src/potion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/potion.c b/src/potion.c index 03efa0db2..5a1e0d286 100644 --- a/src/potion.c +++ b/src/potion.c @@ -2212,11 +2212,12 @@ dodip(void) if (inaccessible_equipment(obj, "dip", FALSE)) return ECMD_OK; + shortestname = (is_plural(obj) || pair_of(obj)) ? "them" : "it"; + drink_ok_extra = 0; /* preceding #dip with 'm' skips the possibility of dipping into fountains and pools plus the prompting which those entail */ if (!iflags.menu_requested) { - shortestname = (is_plural(obj) || pair_of(obj)) ? "them" : "it"; /* * Bypass safe_qbuf() since it doesn't handle varying suffix without * an awful lot of support work. Format the object once, even though