fixed missing initialisation and bad memory access
fixed missing initialisation and bad memory access

viktorTarasov/OpenSC-SM,nmav/OpenSC,philipWendland/OpenSC,AktivCo/OpenSC,AktivCo/OpenSC,rickyepoderi/OpenSC,mouse07410/OpenSC,nmav/OpenSC,CardContact/OpenSC,hhonkanen/OpenSC,frankmorgner/OpenSC,mtrojnar/OpenSC,fabled/OpenSC,metsma/OpenSC,hongquan/OpenSC-main,frankmorgner/OpenSC,OpenSC/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,hhonkanen/OpenSC,viktorTarasov/OpenSC-SM,philipWendland/OpenSC,martinpaljak/OpenSC,AktivCo/OpenSC,mouse07410/OpenSC,rickyepoderi/OpenSC,metsma/OpenSC,hhonkanen/OpenSC,jpki/OpenSC,hongquan/OpenSC-main,nmav/OpenSC,LudovicRousseau/OpenSC,hongquan/OpenSC-main,OpenSC/OpenSC,dengert/OpenSC,metsma/OpenSC,Jakuje/OpenSC,CardContact/OpenSC,Jakuje/OpenSC,Jakuje/OpenSC,mouse07410/OpenSC,mtrojnar/OpenSC,philipWendland/OpenSC,martinpaljak/OpenSC,viktorTarasov/OpenSC-SM,LudovicRousseau/OpenSC,CardContact/OpenSC,rickyepoderi/OpenSC,jpki/OpenSC,fabled/OpenSC,mtrojnar/OpenSC,dengert/OpenSC,fabled/OpenSC,jpki/OpenSC,OpenSC/OpenSC,martinpaljak/OpenSC,frankmorgner/OpenSC,dengert/OpenSC,fabled/OpenSC,LudovicRousseau/OpenSC