Skip to content
Snippets Groups Projects
Commit 9003768b authored by murgatroid99's avatar murgatroid99
Browse files

Fixed unused parameter error

parent 9e3538c5
No related branches found
No related tags found
No related merge requests found
......@@ -254,6 +254,7 @@ static grpc_ssl_roots_override_result get_ssl_roots_override(
static VALUE grpc_rb_set_default_roots_pem(VALUE self, VALUE roots) {
char *roots_ptr = StringValueCStr(roots);
size_t length = strlen(roots_ptr);
(void)self;
pem_root_certs = gpr_malloc((length + 1) * sizeof(char));
memcpy(pem_root_certs, roots_ptr, length + 1);
return Qnil;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment