From 39826148d62d88906bea80c310a316312d5e681c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Fri, 17 Jun 2022 10:32:54 +0200 Subject: [PATCH] * src/fns.c (Fmapconcat): Better empty-string-or-nil detection. --- src/fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fns.c b/src/fns.c index a6ceac29355..4a9954ce903 100644 --- 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 { -- 2.39.2