diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-15 00:07:32 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-15 00:07:32 +0900 |
commit | b4975693ed1ac46be081e02d82a6dfb7aea0e1c0 (patch) | |
tree | 388ad5ce1e6abe8e26360680366d0061d387a81a /process.c | |
parent | 80da68db1e770c877782cdf571d96fd89e7774dd (diff) | |
download | ruby-b4975693ed1ac46be081e02d82a6dfb7aea0e1c0.tar.gz |
process.c (p_sys_setregid, p_sys_setresgid): remove unused tmp buffer
To suppress Coverity Scan warning
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -6099,11 +6099,9 @@ static VALUE p_sys_setregid(VALUE obj, VALUE rid, VALUE eid) { rb_gid_t rgid, egid; - PREPARE_GETGRNAM; check_gid_switch(); rgid = OBJ2GID(rid); egid = OBJ2GID(eid); - FINISH_GETGRNAM; if (setregid(rgid, egid) != 0) rb_sys_fail(0); return Qnil; } @@ -6127,12 +6125,10 @@ static VALUE p_sys_setresgid(VALUE obj, VALUE rid, VALUE eid, VALUE sid) { rb_gid_t rgid, egid, sgid; - PREPARE_GETGRNAM; check_gid_switch(); rgid = OBJ2GID(rid); egid = OBJ2GID(eid); sgid = OBJ2GID(sid); - FINISH_GETGRNAM; if (setresgid(rgid, egid, sgid) != 0) rb_sys_fail(0); return Qnil; } |