1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Silence a code analysis warning

This commit is contained in:
dmiller
2022-08-29 17:23:08 +00:00
parent 2708a5b399
commit 73a7c2fdea

View File

@@ -163,7 +163,7 @@ static lz_stream *lzstream_check(lua_State *L, int index, int state) {
static int lzstream_tostring(lua_State *L) { static int lzstream_tostring(lua_State *L) {
lz_stream *s = (lz_stream*)luaL_checkudata(L, 1, ZSTREAMMETA); lz_stream *s = (lz_stream*)luaL_checkudata(L, 1, ZSTREAMMETA);
if (s == NULL) luaL_argerror(L, 1, "bad zlib stream"); if (s == NULL) return luaL_argerror(L, 1, "bad zlib stream");
if (s->state == LZ_NONE) { if (s->state == LZ_NONE) {
lua_pushstring(L, "zlib stream (closed)"); lua_pushstring(L, "zlib stream (closed)");