summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/proc.c b/proc.c
index f1fd3cea24..1e8c117ff1 100644
--- a/proc.c
+++ b/proc.c
@@ -243,13 +243,13 @@ binding_free(void *ptr)
static void
binding_mark(void *ptr)
{
- rb_binding_t *bind;
+ rb_binding_t *bind = ptr;
+
RUBY_MARK_ENTER("binding");
- if (ptr) {
- bind = ptr;
- RUBY_MARK_UNLESS_NULL(bind->env);
- RUBY_MARK_UNLESS_NULL(bind->path);
- }
+
+ RUBY_MARK_UNLESS_NULL(bind->env);
+ RUBY_MARK_UNLESS_NULL(bind->path);
+
RUBY_MARK_LEAVE("binding");
}