mirror of
https://github.com/nmap/nmap.git
synced 2026-08-30 05:37:05 +00:00
Silence a code analysis warning
This commit is contained in:
parent
2708a5b399
commit
73a7c2fdea
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ static lz_stream *lzstream_check(lua_State *L, int index, int state) {
|
|||
|
||||
static int lzstream_tostring(lua_State *L) {
|
||||
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) {
|
||||
lua_pushstring(L, "zlib stream (closed)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue