]> git.eshelyaron.com Git - emacs.git/commitdiff
xfaces.c: Silence spurious maybe-uninitialized compiler warning
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 13 Dec 2019 17:52:49 +0000 (18:52 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 13 Dec 2019 17:52:49 +0000 (18:52 +0100)
* src/xfaces.c (face_inherited_attr): Initialize 'ok' to false.

src/xfaces.c

index 5c347d41e30388779b367f74b563f50bbe9d8b1c..26fd3631f90543023ff11f54b599ede14f7829ff 100644 (file)
@@ -2168,6 +2168,7 @@ face_inherited_attr (struct window *w, struct frame *f,
       if (CONSP (parent_face))
        {
          Lisp_Object tail;
+         ok = false;
          for (tail = parent_face; !NILP (tail); tail = XCDR (tail))
            {
              ok = get_lface_attributes (w, f, XCAR (tail), inherited_attrs,