westcos: Avoid assigning local variable to function arguments

This commit is contained in:
Jakub Jelen 2020-11-13 17:38:07 +01:00 committed by Frank Morgner
parent 3d257410b2
commit 0365c3ce6c
1 changed files with 1 additions and 0 deletions

View File

@ -805,6 +805,7 @@ static int westcos_pin_cmd(sc_card_t * card, struct sc_pin_cmd_data *data,
} else { } else {
r = SC_ERROR_NOT_SUPPORTED; r = SC_ERROR_NOT_SUPPORTED;
} }
data->apdu = NULL;
} }
if (r) if (r)
return (r); return (r);