aboutsummaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/app-p15.c2
-rw-r--r--scd/app-sc-hsm.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/scd/app-p15.c b/scd/app-p15.c
index 5310af84d..0e92edf56 100644
--- a/scd/app-p15.c
+++ b/scd/app-p15.c
@@ -708,7 +708,7 @@ select_and_read_record (app_t app, unsigned short efid, int recno,
unsigned char **buffer, size_t *buflen, int *r_sw)
{
gpg_error_t err;
- int sw;
+ int sw = 0;
if (r_sw)
*r_sw = 0x9000;
diff --git a/scd/app-sc-hsm.c b/scd/app-sc-hsm.c
index 1ca709f72..c57ba345e 100644
--- a/scd/app-sc-hsm.c
+++ b/scd/app-sc-hsm.c
@@ -666,6 +666,7 @@ read_ef_prkd (app_t app, unsigned short fid, prkdf_object_t *prkdresult,
{
/* Yep, this is the keyReference.
Note: UL is currently not used. */
+ (void)ul;
for (ul=0; objlen; objlen--)
{
ul <<= 8;