From: Eli Zaretskii Date: Wed, 8 May 2019 06:29:20 +0000 (+0300) Subject: Add an assertion to xdisp.c X-Git-Tag: emacs-27.0.90~2945 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd8a1d6bfdc5aebc34348801dbaca06f2f4986c5;p=emacs.git Add an assertion to xdisp.c * src/xdisp.c (display_mode_element): Add an assertion where we assume that 'string' returned by decode_mode_spec is always either a Lisp string or nil. --- diff --git a/src/xdisp.c b/src/xdisp.c index 63ca677e362..d380645c849 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -24026,6 +24026,7 @@ display_mode_element (struct it *it, int depth, int field_width, int precision, ? string_byte_to_char (elt, bytepos) : bytepos); spec = decode_mode_spec (it->w, c, field, &string); + eassert (NILP (string) || STRINGP (string)); multibyte = !NILP (string) && STRING_MULTIBYTE (string); switch (mode_line_target)