diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 648bf8f3d5..a8bb4c7178 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1620,12 +1620,12 @@ native_set_thread_name(rb_thread_t *th) size_t len; int n; - name = RSTRING_PTR(RARRAY_AREF(loc, 0)); + name = RSTRING_PTR(RARRAY_AREF(loc, 0)); p = strrchr(name, '/'); /* show only the basename of the path. */ if (p && p[1]) name = p + 1; - n = snprintf(buf, sizeof(buf), "%s:%d", name, NUM2INT(RARRAY_AREF(loc, 1))); + n = snprintf(buf, sizeof(buf), "%s:%d", name, NUM2INT(RARRAY_AREF(loc, 1))); rb_gc_force_recycle(loc); /* acts as a GC guard, too */ len = (size_t)n; |