From 5233186611e9997387ade5265d4f1b1ea54395a8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 6 Nov 2022 16:31:25 +0200 Subject: [PATCH] Revert "Pacify -Wnull-dereference" This reverts commit dad452552bebf832e737ebb946b5eea6cd57f63f. Please don't assume I write such code by omission. --- src/xdisp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index ea193601b54..054adb9d9d9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -23154,14 +23154,14 @@ extend_face_to_end_of_line (struct it *it) point temporarily moved to window-point. */ specbind (Qinhibit_quit, Qt); /* The default face, possibly remapped. */ - struct face *default_face - = FACE_FROM_ID (f, lookup_basic_face (it->w, f, DEFAULT_FACE_ID)); - const int extend_face_id - = ((it->face_id == default_face->id || it->s != NULL) - ? it->face_id - : (it->glyph_row->ends_at_zv_p - ? default_face->id - : face_at_pos (it, LFACE_EXTEND_INDEX))); + struct face *default_face = + FACE_FROM_ID_OR_NULL (f, lookup_basic_face (it->w, f, DEFAULT_FACE_ID)); + const int extend_face_id = + (it->face_id == default_face->id || it->s != NULL) + ? it->face_id + : (it->glyph_row->ends_at_zv_p + ? default_face->id + : face_at_pos (it, LFACE_EXTEND_INDEX)); unbind_to (count, Qnil); /* Face extension extends the background and box of IT->extend_face_id -- 2.39.2