The second input buffer could be optional when prepo/srepo is called, test for the availability of the second buffer prior to reading from it.