pass rr by reference to set_rdata
Merge pull request #30 from pesco/fix-set_rdata

pass rr by reference to set_rdata