mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
54726befc3
commit
fae6c6bfd8
5 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue