Skip to content

Commit c145bad

Browse files
committed
Remove extra read_string for a string field
* `servent.s_name.type` is always `string` now.
1 parent da05e24 commit c145bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/truffle/socket/truffle/foreign/servent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Servent < Truffle::FFI::Struct
3131
config('platform.servent', :s_name, :s_aliases, :s_port, :s_proto)
3232

3333
def name
34-
self[:s_name].read_string
34+
self[:s_name]
3535
end
3636

3737
def port

0 commit comments

Comments
 (0)