diff options
| author | Eli Zaretskii | 2019-05-08 09:29:20 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-05-08 09:29:20 +0300 |
| commit | cd8a1d6bfdc5aebc34348801dbaca06f2f4986c5 (patch) | |
| tree | 01ff563a4b8317478fd792a07c49a2e3858bd417 | |
| parent | 4cb64ac3f9468422b471d9cc4c8edbc92fab6722 (diff) | |
| download | emacs-cd8a1d6bfdc5aebc34348801dbaca06f2f4986c5.tar.gz emacs-cd8a1d6bfdc5aebc34348801dbaca06f2f4986c5.zip | |
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.
| -rw-r--r-- | src/xdisp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
| 24026 | ? string_byte_to_char (elt, bytepos) | 24026 | ? string_byte_to_char (elt, bytepos) |
| 24027 | : bytepos); | 24027 | : bytepos); |
| 24028 | spec = decode_mode_spec (it->w, c, field, &string); | 24028 | spec = decode_mode_spec (it->w, c, field, &string); |
| 24029 | eassert (NILP (string) || STRINGP (string)); | ||
| 24029 | multibyte = !NILP (string) && STRING_MULTIBYTE (string); | 24030 | multibyte = !NILP (string) && STRING_MULTIBYTE (string); |
| 24030 | 24031 | ||
| 24031 | switch (mode_line_target) | 24032 | switch (mode_line_target) |