Skip to content

Commit

Permalink
Register global before assigning
Browse files Browse the repository at this point in the history
Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
  • Loading branch information
composerinteralia and casperisfine authored Apr 5, 2024
1 parent 9d6b1cf commit e9a4c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ruby/ext/trilogy-ruby/cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,8 @@ RUBY_FUNC_EXPORTED void Init_cext(void)
Trilogy_EOFError = rb_const_get(Trilogy, rb_intern("EOFError"));
rb_global_variable(&Trilogy_EOFError);

Trilogy_AuthPluginError = rb_const_get(Trilogy, rb_intern("AuthPluginError"));
rb_global_variable(&Trilogy_AuthPluginError);
Trilogy_AuthPluginError = rb_const_get(Trilogy, rb_intern("AuthPluginError"));

id_socket = rb_intern("socket");
id_host = rb_intern("host");
Expand Down

0 comments on commit e9a4c65

Please sign in to comment.