summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2024-01-09 20:04:20 +0100
committerAaron Patterson <aaron.patterson@gmail.com>2024-01-12 12:24:48 -0800
commitaad246feba1579cc3c34f8309845692e2f11babd (patch)
tree884c0bc4d8969336a5961fe3688bd1085709ad79 /dir.c
parent774eef692cc9708b22959ef57b8472a375772189 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 96c1a455b3..c972a6ce40 100644
--- a/dir.c
+++ b/dir.c
@@ -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) {