Fixed some simple static analyzer warnings (reported by CppCheck)
Fixed some simple static analyzer warnings (reported by CppCheck)

beru/CharLS,cureos/charls,beru/CharLS,team-charls/charls,cureos/charls,cureos/charls,beru/CharLS,team-charls/charls