From 3d9f8bf1dc0c7165a5d2a31568ed425d2dc3b91e Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Sat, 24 Jan 2015 03:03:33 +1100 Subject: [PATCH] Remove incorrect expression leading to errors. * scd/ccid-driver.c (send_escape_cmd): Fix setting of 'rc'. -- Variable 'rc' in send_escape_cmd was overwritten before it was returned, leading to incorrect computation. Signed-off-by: Joshua Rogers [Log entry reformatted - wk] --- scd/ccid-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 6e0bc55fa..c4c0d9c54 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -2266,8 +2266,8 @@ send_escape_cmd (ccid_driver_t handle, { memcpy (result, msg, msglen); *resultlen = msglen; + rc = 0; } - rc = 0; } break; default: