summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl_pkey.c')
-rw-r--r--ext/openssl/ossl_pkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c
index e07e659319..cb0c320a0c 100644
--- a/ext/openssl/ossl_pkey.c
+++ b/ext/openssl/ossl_pkey.c
@@ -38,7 +38,7 @@ ossl_generate_cb(int p, int n, void *arg)
int
ossl_generate_cb_2(int p, int n, BN_GENCB *cb)
{
- VALUE ary, ret;
+ VALUE ary;
struct ossl_generate_cb_arg *arg;
int state;
@@ -51,7 +51,7 @@ ossl_generate_cb_2(int p, int n, BN_GENCB *cb)
/*
* can be break by raising exception or 'break'
*/
- ret = rb_protect(rb_yield, ary, &state);
+ rb_protect(rb_yield, ary, &state);
if (state) {
arg->stop = 1;
arg->state = state;