fix assigning variable before definition bug
Merge pull request #4874 from ticoann/dbs3_reader_fix

fix assigning variable before definition bug