Displaying 1 result from an estimated 1 matches for "6b0285f".
Did you mean:
6b025f8
2018 Mar 06
1
[PATCH nbdkit] Fix --dump-plugin on perl, python and ruby plugins.
...PyObject *fn;
PyObject *r;
- if (callback_defined ("dump_plugin", &fn)) {
+ if (script && callback_defined ("dump_plugin", &fn)) {
PyErr_Clear ();
r = PyObject_CallObject (fn, NULL);
diff --git a/plugins/ruby/ruby.c b/plugins/ruby/ruby.c
index 6b0285f..aa57f65 100644
--- a/plugins/ruby/ruby.c
+++ b/plugins/ruby/ruby.c
@@ -168,10 +168,8 @@ plugin_rb_unload (void)
static void
plugin_rb_dump_plugin (void)
{
- if (!script) {
- nbdkit_error ("the first parameter must be script=/path/to/ruby/script.rb");
+ if (!script)
return;
-...