diff --git a/src/invent.c b/src/invent.c index d9001b9b5..7260c2028 100644 --- a/src/invent.c +++ b/src/invent.c @@ -1526,7 +1526,7 @@ getobj( * between "you don't have anything to " * versus "you don't have anything _else_ to " * (also used for GETOBJ_EXCLUDE_NONINVENT) */ - long cnt; + long cnt = 0L; boolean cntgiven = FALSE; boolean msggiven = FALSE; boolean oneloop = FALSE; diff --git a/win/X11/winstat.c b/win/X11/winstat.c index 6baf30ff3..778471b52 100644 --- a/win/X11/winstat.c +++ b/win/X11/winstat.c @@ -1917,12 +1917,12 @@ update_fancy_status_field(int i, int color, int attributes) * * Break out with this. */ - static boolean active = FALSE; + static boolean isactive = FALSE; - if (!active) { - active = TRUE; + if (!isactive) { + isactive = TRUE; impossible("update_other: unknown shown value"); - active = FALSE; + isactive = FALSE; } val = 0L; break;