From: Pasi Kallinen Date: Thu, 14 Apr 2022 15:59:03 +0000 (+0300) Subject: Fix uninitialized var in dip X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43856fe023236c5a908cdaa30639a92a18a72e15;p=nethack Fix uninitialized var in dip --- 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