]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: remove a redundant write after mcel_scan returns an error
authorCollin Funk <collin.funk1@gmail.com>
Sun, 19 Oct 2025 03:24:21 +0000 (20:24 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Mon, 20 Oct 2025 22:14:16 +0000 (15:14 -0700)
* gl/lib/mbbuf.h (mbbuf_get_char): Don't set G.len to 1, since mcel_err
has already done it.

gl/lib/mbbuf.h

index 292b131c6c6a5f82134134de22de4e0fe2af8c43..135b82f806c9aaa90ac7152e31f6b6306ec8366e 100644 (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;
 }