]> git.eshelyaron.com Git - emacs.git/commit
Fix string-distance for two empty strings
authorPhilip Kaludercic <philipk@posteo.net>
Thu, 23 Sep 2021 16:12:41 +0000 (18:12 +0200)
committerMattias EngdegÄrd <mattiase@acm.org>
Thu, 23 Sep 2021 17:10:38 +0000 (19:10 +0200)
commitc44190ca5b9873fceae8aee7034ce8e89c42d4dd
tree43a7d5ec8023ef2c7476ced38886ad78df92cf24
parent13d930deddd2e0529a0fb0f2fb93dd621d6d35be
Fix string-distance for two empty strings

* fns.c (Fstring_distance): Avoid using uninitialized memory.
* test/src/fns-tests.el (test-string-distance): Add test cases.
src/fns.c
test/src/fns-tests.el