]> granicus.if.org Git - nethack/commit
static analyzer bit display.c
authornhmall <nhmall@nethack.org>
Mon, 2 Jan 2023 21:06:11 +0000 (16:06 -0500)
committernhmall <nhmall@nethack.org>
Mon, 2 Jan 2023 21:06:11 +0000 (16:06 -0500)
commit33c13d6fffd7c94806c6bf6599ae43f9e7b887bc
tree50ba7a02e4795c6084693a15c5a409e67c4e132d
parentdc6ad9266b0bcd9f48183cb7db57e11cdd1766b5
static analyzer bit display.c

A static analyzer pointed out that the 'if' was checking
for null pointer, but the 'else' was not, yet they were
both then dereferencing the same variable.
src/display.c