aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-01-12 05:49:45 +0000
committerKenichi Handa1998-01-12 05:49:45 +0000
commit470730a82246661e53cd3f2b8730bbc1f74c7419 (patch)
tree436415e8804c03f66f1e3ab57cc7f08d3c9558cf /src
parente68e61b5e03208f59adc30e863a0b7a874c82e23 (diff)
downloademacs-470730a82246661e53cd3f2b8730bbc1f74c7419.tar.gz
emacs-470730a82246661e53cd3f2b8730bbc1f74c7419.zip
(concat): Check STRINGP before increasing result_len_byte.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index c1e29b82e96..69705af4319 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -456,7 +456,7 @@ concat (nargs, args, target_type, last_special)
456 if (this_len_byte > 1) 456 if (this_len_byte > 1)
457 some_multibyte = 1; 457 some_multibyte = 1;
458 } 458 }
459 else 459 else if (STRINGP (this))
460 { 460 {
461 result_len_byte += XSTRING (this)->size_byte; 461 result_len_byte += XSTRING (this)->size_byte;
462 if (STRING_MULTIBYTE (this)) 462 if (STRING_MULTIBYTE (this))