diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-03-26 16:48:26 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-03-26 16:48:26 +0900 |
| commit | 87d7fc616504dff16a22e24bc5fa67aae2be0d30 (patch) | |
| tree | 28e7290b548a4aff1939b6289736efec5d7fcb4d /src/class.c | |
| parent | a7842b6451cdb20c9a5aeebf81387e538aa0facf (diff) | |
| parent | 2d91803528d14b39868fa3c16f9293d1f34e675c (diff) | |
| download | mruby-87d7fc616504dff16a22e24bc5fa67aae2be0d30.tar.gz mruby-87d7fc616504dff16a22e24bc5fa67aae2be0d30.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/class.c')
| -rw-r--r-- | src/class.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/class.c b/src/class.c index 11f68340c..84132c38a 100644 --- a/src/class.c +++ b/src/class.c @@ -1369,9 +1369,12 @@ mrb_mod_to_s(mrb_state *mrb, mrb_value klass) mrb_str_cat(mrb, str, ">", 1); } else { + struct RClass *c; + mrb_value path; + str = mrb_str_buf_new(mrb, 32); - struct RClass *c = mrb_class_ptr(klass); - mrb_value path = mrb_class_path(mrb, c); + c = mrb_class_ptr(klass); + path = mrb_class_path(mrb, c); if (mrb_nil_p(path)) { switch (mrb_type(klass)) { |
