From ee49c800617c04d0d7f1648e226919468338a915 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 17 Aug 2021 16:09:05 +0200 Subject: [PATCH] [meson] ruby dependency: ruby not ruby-2.6 Also initialize error, because rb_load_protect, does not change it. --- meson.build | 2 +- src/scripting/ruby/core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4fb4456b..4d538bce 100644 --- a/meson.build +++ b/meson.build @@ -302,7 +302,7 @@ endif rubydeps = [] if conf_data.get('CONFIG_SCRIPTING_RUBY') - rubydeps = dependency('ruby-2.6') + rubydeps = dependency('ruby') deps += rubydeps endif diff --git a/src/scripting/ruby/core.c b/src/scripting/ruby/core.c index 63ea51af..09af5379 100644 --- a/src/scripting/ruby/core.c +++ b/src/scripting/ruby/core.c @@ -247,7 +247,7 @@ init_ruby(struct module *module) if (!path) return; if (file_can_read(path)) { - int error; + int error = 0; /* Load ~/.elinks/hooks.rb into the interpreter. */ //rb_load_file(path);