]> git.eshelyaron.com Git - emacs.git/commit
Fix off-by-one-link error in image--set-property
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 17 Apr 2019 13:24:31 +0000 (14:24 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Thu, 18 Apr 2019 15:07:55 +0000 (16:07 +0100)
commita4ad7bed187493c1c230f223b52c71f5c34f7c89
tree21ac3a6019b8c4ecc13f9679c0edcca0b521c643
parenta1c53d4294550380de76d6a6c4e29e9e8f6f9133
Fix off-by-one-link error in image--set-property

* lisp/image.el (image--set-property): Ensure new value is set even
in the unlikely case that the plist is empty.  Fix off-by-one-link
error when deleting a property. (bug#35285)
* test/lisp/image-tests.el: New file.
(image--set-property): New test.
lisp/image.el
test/lisp/image-tests.el [new file with mode: 0644]