aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2019-12-11 19:11:23 +0200
committerEli Zaretskii2019-12-11 19:11:23 +0200
commitbad2532f664e11e5b32c1194f2274ba2d1f0116b (patch)
tree89c22e8c404198084afd62e5dbed419b2dedfb88 /src
parent73e51c9846651d361ad554a8839411980aaf182b (diff)
downloademacs-bad2532f664e11e5b32c1194f2274ba2d1f0116b.tar.gz
emacs-bad2532f664e11e5b32c1194f2274ba2d1f0116b.zip
Avoid infloop in face merging due to bad face spec
* src/xfaces.c (face_inherited_attr): Don't infloop if get_lface_attributes fails in the inner loop. Reported by Yuri D'Elia <wavexx@thregr.org>.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 6db4dcd226f..54b5f4a94a4 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2179,6 +2179,8 @@ face_inherited_attr (struct window *w, struct frame *f,
2179 if (!UNSPECIFIEDP (attr_val)) 2179 if (!UNSPECIFIEDP (attr_val))
2180 break; 2180 break;
2181 } 2181 }
2182 if (!ok) /* bad face? */
2183 break;
2182 } 2184 }
2183 else 2185 else
2184 { 2186 {