]> granicus.if.org Git - nethack/commitdiff
Init variable just in case
authorPasi Kallinen <paxed@alt.org>
Sat, 1 Jan 2022 14:58:34 +0000 (16:58 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 1 Jan 2022 14:58:34 +0000 (16:58 +0200)
src/pickup.c

index 545212d6c144672465fa18172c581351d7120c24..dfaa5e09f9f59abb98b2deb10875fa52bbe8ec4a 100644 (file)
@@ -3371,7 +3371,7 @@ tipcontainer(struct obj *box) /* or bag */
     xchar ox = u.ux, oy = u.uy; /* #tip only works at hero's location */
     boolean empty_it = TRUE, maybeshopgoods;
     struct obj *targetbox = (struct obj *) 0;
-    boolean cancelled;
+    boolean cancelled = FALSE;
 
     /* box is either held or on floor at hero's spot; no need to check for
        nesting; when held, we need to update its location to match hero's;