Skip to content

Commit

Permalink
use RSTRING_PTR instead of StringValuePtr
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Jun 10, 2024
1 parent 357dedd commit e72af0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/datadog_cov/datadog_cov.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static void dd_cov_update_coverage(rb_event_flag_t event, VALUE data, VALUE self
return;
}

char *filename_ptr = StringValuePtr(filename);
char *filename_ptr = RSTRING_PTR(filename);
// if the current filename is not located under the root, we skip it
if (strncmp(dd_cov_data->root, filename_ptr, dd_cov_data->root_len) != 0)
{
Expand Down

0 comments on commit e72af0c

Please sign in to comment.