]> granicus.if.org Git - nethack/commit
new static analyzer fix - nhlua.c
authorPatR <rankin@nethack.org>
Sat, 21 Jan 2023 01:18:27 +0000 (17:18 -0800)
committerPatR <rankin@nethack.org>
Sat, 21 Jan 2023 01:18:27 +0000 (17:18 -0800)
commit0f257ec538242db8eccd41f92cf21a1a4c1d0f84
tree920c498b6e7ca5106054766952dff98a37d6a859
parent28cd1882592d9f86caa35ce67fb1fa4898e1be1f
new static analyzer fix - nhlua.c

Cope with get_nh_lua_variable() possibly returning Null.

Either or both of the DISABLE_WARNING_UNREACHABLE_CODE and
RESTORE_WARNING_UNREACHABLE_CODE in the vicinity looked misplaced so
I took them out.  They may need to be added back in.
src/nhlua.c