diff options
author | Xavier Noria <fxn@hashref.com> | 2024-01-09 20:04:20 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-12 12:24:48 -0800 |
commit | aad246feba1579cc3c34f8309845692e2f11babd (patch) | |
tree | 884c0bc4d8969336a5961fe3688bd1085709ad79 /dir.c | |
parent | 774eef692cc9708b22959ef57b8472a375772189 (diff) |
s/SafeStringValue/StringValue/
The macro SafeStringValue() became just StringValue() in c5c05460ac2,
and it is deprecated nowadays.
This patch replaces remaining macro usage. Some occurrences are left in
ext/stringio and ext/win32ole, they should be fixed upstream.
The macro itself is not deleted, because it may be used in extensions.
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3509,7 +3509,7 @@ dir_s_home(int argc, VALUE *argv, VALUE obj) rb_check_arity(argc, 0, 1); user = (argc > 0) ? argv[0] : Qnil; if (!NIL_P(user)) { - SafeStringValue(user); + StringValue(user); rb_must_asciicompat(user); u = StringValueCStr(user); if (*u) { |