Fix copy&paste error in Lua ubus subscriber removal callback.
Addresses-Coverity-ID:
1412311 ("Copy-paste error")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
if( idxremove ){
lua_getglobal(L, "__ubus_cb_subscribe");
- lua_pushvalue(L, idxnotify);
- sub->rnotify = luaL_ref(L, -2);
+ lua_pushvalue(L, idxremove);
+ sub->rremove = luaL_ref(L, -2);
lua_pop(L, 1);
sub->s.remove_cb = ubus_sub_remove_handler;
}