]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/engine nit: drop an unused variable
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 27 Mar 2024 08:21:41 +0000 (09:21 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 8 Apr 2024 09:09:58 +0000 (11:09 +0200)
Reported by clang.

daemon/engine.c

index 1d387ea31d9d74780066446cca236f090a58b35f..1f9f1005181ee1a684e9902470431c4574bc314a 100644 (file)
@@ -223,7 +223,6 @@ static int l_log_groups(lua_State *L)
                        goto bad_call;
                kr_log_group_reset();
 
-               int idx = 1;
                lua_pushnil(L);
                while (lua_next(L, 1) != 0) {
                        const char *grp_str = lua_tostring(L, -1);
@@ -237,7 +236,6 @@ static int l_log_groups(lua_State *L)
                                kr_log_warning(SYSTEM, "WARNING: unknown log group '%s'\n", lua_tostring(L, -1));
                        }
 
-                       ++idx;
                        lua_pop(L, 1);
                }
        }