summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/transcode.c b/transcode.c
index 17d406e8be..b9d0adc553 100644
--- a/transcode.c
+++ b/transcode.c
@@ -370,15 +370,12 @@ load_transcoder_entry(transcoder_entry_t *entry)
char *const path = RSTRING_PTR(fn);
const int safe = rb_safe_level();
- entry->lib = NULL;
-
memcpy(path, transcoder_lib_prefix, sizeof(transcoder_lib_prefix) - 1);
memcpy(path + sizeof(transcoder_lib_prefix) - 1, lib, len);
rb_str_set_len(fn, total_len);
FL_UNSET(fn, FL_TAINT);
OBJ_FREEZE(fn);
- if (!rb_require_safe(fn, safe > 3 ? 3 : safe))
- return NULL;
+ rb_require_safe(fn, safe > 3 ? 3 : safe);
}
if (entry->transcoder)