static analyzer lint for dig.c, do.c

This commit is contained in:
PatR
2025-01-18 19:58:30 -08:00
parent e8d9331f14
commit c97bb2c0a4
2 changed files with 3 additions and 1 deletions

View File

@@ -1642,6 +1642,7 @@ zap_dig(void)
if (diridx != DIR_ERR
&& !conjoined_pits(adjpit, trap_with_u, FALSE)) {
digdepth = 0; /* limited to the adjacent location only */
nhUse(digdepth);
if (!(adjpit && is_pit(adjpit->ttyp))) {
char buf[BUFSZ];