Plugins/quad: initialize loop variable