From: memeplex Date: Wed, 16 Oct 2019 16:44:00 +0000 (-0300) Subject: Remove redundant initialization of fringe bitmap (Bug#37756) X-Git-Tag: emacs-27.0.90~889 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16372a5a04c1bf2028941dec6bbdbf75d1f61a62;p=emacs.git Remove redundant initialization of fringe bitmap (Bug#37756) * src/fringe.c (Fdefine-fringe-bitmap): Remove redundant zeroing of fb.bits that only zeroed half of the array anyway. --- diff --git a/src/fringe.c b/src/fringe.c index 22f3bdc2ba8..08bf271ed56 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1607,7 +1607,6 @@ If BITMAP already exists, the existing definition is replaced. */) fb.bits = b = ((unsigned short *) ptr_bounds_clip (xfb + 1, fb.height * BYTES_PER_BITMAP_ROW)); xfb = ptr_bounds_clip (xfb, sizeof *xfb); - memset (b, 0, fb.height); j = 0; while (j < fb.height)