Update libreg/src/rst.c to fix regression which blocked Jury test from being used