]> granicus.if.org Git - nethack/commitdiff
silence a warning about use of potentially uninitialized variable
authornhmall <nhmall@nethack.org>
Fri, 10 Jan 2020 20:10:47 +0000 (15:10 -0500)
committernhmall <nhmall@nethack.org>
Fri, 10 Jan 2020 20:10:47 +0000 (15:10 -0500)
src/apply.c

index fad2265a94a8bc12e9e59b098a720a61ce0eb1cd..79da1130dd523428ea9ebcaf03ff724dd92a3be6 100644 (file)
@@ -3520,7 +3520,7 @@ char class_list[];
 
     knowoil = objects[POT_OIL].oc_name_known;
     knowtouchstone = objects[TOUCHSTONE].oc_name_known;
-    addpotions = addstones = addfood = FALSE;
+    addpotions = addstones = addfood = addspellbooks = FALSE;
     for (otmp = g.invent; otmp; otmp = otmp->nobj) {
         otyp = otmp->otyp;
         if (otyp == POT_OIL