We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b6983 commit 29e8eb3Copy full SHA for 29e8eb3
mqtt/driver.c
@@ -547,7 +547,8 @@ mosq_subscribe_f(struct mosquitto *mosq __attribute__((unused)),
547
return;
548
lua_rawgeti(ctx->L, LUA_REGISTRYINDEX, ctx->subscribe_ref);
549
lua_pushinteger(ctx->L, mid);
550
- for (int i = 0; i < qos_count; i++)
+ int i = 0;
551
+ for (i = 0; i < qos_count; i++)
552
lua_pushinteger(ctx->L, granted_qos[i]);
553
if (lua_pcall(ctx->L, qos_count + 1, 0, 0) != LUA_OK)
554
say_error("Subscribe callback failed: ref:%d, message: \"%s\"",
0 commit comments