projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d0a09
)
* src/fns.c (Fmapconcat): Better empty-string-or-nil detection.
author
Mattias Engdegård
<mattiase@acm.org>
Fri, 17 Jun 2022 08:32:54 +0000
(10:32 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Fri, 17 Jun 2022 09:41:34 +0000
(11:41 +0200)
src/fns.c
patch
|
blob
|
history
diff --git
a/src/fns.c
b/src/fns.c
index a6ceac293550b8cbe7b7e87a59804cfa9b99897f..4a9954ce9035c51e01ea202a85fdbfc02d913466 100644
(file)
--- a/
src/fns.c
+++ b/
src/fns.c
@@
-2836,7
+2836,7
@@
FUNCTION must be a function of one argument, and must return a value
ptrdiff_t nargs = 2 * nmapped - 1;
eassert (nmapped == leni);
- if (
!NILP (Fequal (separator, empty_multibyte_string)
))
+ if (
NILP (separator) || (STRINGP (separator) && SCHARS (separator) == 0
))
nargs = nmapped;
else
{