1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-11 01:42:17 +02:00

maint: remove a redundant write after mcel_scan returns an error

* gl/lib/mbbuf.h (mbbuf_get_char): Don't set G.len to 1, since mcel_err
has already done it.
This commit is contained in:
Collin Funk
2025-10-18 20:24:21 -07:00
parent 38b824ac7e
commit 7c6c7095b9

View File

@@ -97,7 +97,6 @@ mbbuf_get_char (mbbuf_t *mbbuf)
{
/* Assume the program will emit the byte, but keep the error flag. */
g.ch = mbbuf->buffer[mbbuf->offset++];
g.len = 1;
}
return g;
}