Move length
variable to proper scope
This commit is contained in:
parent
017fd64d2f
commit
88c978e898
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,6 @@ public class MyApplet extends Applet {
|
||||||
* @param apdu the incoming APDU
|
* @param apdu the incoming APDU
|
||||||
*/
|
*/
|
||||||
public void process(APDU apdu) {
|
public void process(APDU apdu) {
|
||||||
short length;
|
|
||||||
byte[] buffer = apdu.getBuffer();
|
byte[] buffer = apdu.getBuffer();
|
||||||
|
|
||||||
if (selectingApplet()) {
|
if (selectingApplet()) {
|
||||||
|
@ -92,6 +91,8 @@ public class MyApplet extends Applet {
|
||||||
ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
|
ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
short length;
|
||||||
|
|
||||||
switch (instruction) {
|
switch (instruction) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
case 0x04:
|
case 0x04:
|
||||||
|
|
Loading…
Reference in a new issue