diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-05-06 23:16:03 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-05-06 23:32:53 +0900 |
| commit | e2604c1550562b6fa507570e817cadf9981e1c82 (patch) | |
| tree | df8e5d193871981b5814ee1b24f5095bb2904b33 /tasks/gitlab.rake | |
| parent | 31cc8573f058e791c9a08735afa72678e5df7a46 (diff) | |
| download | mruby-e2604c1550562b6fa507570e817cadf9981e1c82.tar.gz mruby-e2604c1550562b6fa507570e817cadf9981e1c82.zip | |
Avoid using `mrb_str_to_cstr` if possible
Because it always allocate new string. Replace with the followings:
- Use `RSRING_PTR` if string is guaranteed to be null-terminated.
- Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't
modified.
Diffstat (limited to 'tasks/gitlab.rake')
0 files changed, 0 insertions, 0 deletions
