From 315d3adf0f9660568bdca01fd6ddd196c92973d2 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 14 Jul 2019 13:49:39 +0900 Subject: [PATCH] Avoid io_tell whose return value is not used In this case, flush_before_seek is enough. This change will suppress a warning of Coverity Scan. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index 3e3a0ed448..e4d9f3c4ec 100644 --- a/io.c +++ b/io.c @@ -7275,7 +7275,7 @@ io_reopen(VALUE io, VALUE nfile) rb_sys_fail(0); } else { - io_tell(fptr); + flush_before_seek(fptr); } if (orig->mode & FMODE_READABLE) { pos = io_tell(orig);