summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index d74451f..a6f5ca1 100644
--- a/ruby.c
+++ b/ruby.c
@@ -382,9 +382,8 @@ dladdr_path(const void* addr)
}
#ifdef __linux__
else if (dli.dli_fname == origarg.argv[0]) {
- VALUE rb_readlink(VALUE);
fname = rb_str_new_cstr("/proc/self/exe");
- path = rb_readlink(fname);
+ path = rb_readlink(fname, NULL);
}
#endif
else {