X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/089c6aab18ea8986bfc02ef3e65500b589e7afbe..6ffb560b2a940d19419ac5afe11418588ef8c61f:/src/fringe.c diff --git a/src/fringe.c b/src/fringe.c index 3c0e883b2e..a494f681cd 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1,5 +1,5 @@ /* Fringe handling (split from xdisp.c). - Copyright (C) 1985-1988, 1993-1995, 1997-2014 Free Software + Copyright (C) 1985-1988, 1993-1995, 1997-2015 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -65,10 +65,6 @@ along with GNU Emacs. If not, see . */ must specify physical bitmap symbols. */ -static Lisp_Object Qtruncation, Qcontinuation, Qoverlay_arrow; -static Lisp_Object Qempty_line, Qtop_bottom; -static Lisp_Object Qhollow_small; - enum fringe_bitmap_align { ALIGN_BITMAP_CENTER = 0, @@ -1727,15 +1723,13 @@ init_fringe_once (void) void init_fringe (void) { - int i; - max_fringe_bitmaps = MAX_STANDARD_FRINGE_BITMAPS + 20; fringe_bitmaps = xzalloc (max_fringe_bitmaps * sizeof *fringe_bitmaps); - fringe_faces = xmalloc (max_fringe_bitmaps * sizeof *fringe_faces); - for (i = 0; i < max_fringe_bitmaps; i++) - fringe_faces[i] = Qnil; + fringe_faces = xzalloc (max_fringe_bitmaps * sizeof *fringe_faces); + if (NIL_IS_NONZERO) + memsetnil (fringe_faces, max_fringe_bitmaps); } #ifdef HAVE_NTGUI