]> git.eshelyaron.com Git - emacs.git/commit
Fix minor bugs in image.c
authorPip Cet <pipcet@gmail.com>
Tue, 18 Aug 2020 16:27:05 +0000 (18:27 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Aug 2020 16:27:05 +0000 (18:27 +0200)
commit495aa532f1a6486295dc502f22a3300d8f61be16
tree6ccfd0a15ab5e63535f7ff04224a5a6ce07a1681
parent52d7aa76b1c4564c700b70b63ba4cb4b2dd0b3f7
Fix minor bugs in image.c

* test/src/image-tests.el (image-test-circular-specs): New file.
* src/image.c (parse_image_spec): Return failure for circular lists.
(valid_image_p): Don't look at odd-numbered list elements expecting to
find a property name.
(image_spec_value): Handle circular lists.
(equal_lists): Introduce.
(search_image_cache): Use `equal_lists' (bug#36403).
src/image.c
test/manual/image-circular-tests.el [new file with mode: 0644]