diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index b896b79c6..6953acb3d 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -875,7 +875,7 @@ public: /* Error handling code */ Printf(f->code,"fail:\n"); Printv(f->code,cleanup,NIL); - /* Anything else to do here? */ + Printv(f->code,"return Qnil;\n",NIL); Printf(f->code,"}\n"); /* Substitute the cleanup code */