Fix compiler warning caused by uninitialized variable

This commit is contained in:
meehl committed 2025-11-22 13:48:13 +01:00
1 parent 37bc3c5dbb
commit c95514036f
1 file changed
+1 -1
+1 -1
View File
@@ -646,7 +646,7 @@ static int l_zipFile_Read(lua_State* L)
if (n < 1) {
luaL_error(L, "Usage: zipFile:Read(count) or zipFile:read(\"*a\")");
}
int count;
int count = 0;
if (lua_isnumber(L, 1)) {
count = lua_tointeger(L, 1);
} else {