]> git.eshelyaron.com Git - emacs.git/commit
Catch duplicate keywords in image specs
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Jun 2019 19:21:20 +0000 (12:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Jun 2019 19:21:53 +0000 (12:21 -0700)
commit3502d4c1b587057c2f5907997f74ae0a2e0d2a7d
tree1fdccc581a3c80473ca0b67ccf44651bd6256c53
parenta91bdeb131f75210d32243f0bdfa02d2af87ea44
Catch duplicate keywords in image specs

* src/image.c (struct image_keyword.count): Now bool, not int,
since it is either 0 or 1.
(parse_image_spec, xpm_image_p): Use bool for boolean.
(parse_image_spec): Fix a bug introduced in
2011-09-21T17:41:20!eggert@cs.ucla.edu that reported only
triplicate (or more) keywords, not duplicates.
src/image.c