summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libguile/srfi-4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/srfi-4.c b/libguile/srfi-4.c
index cb92b80c7..85fbc2ddd 100644
--- a/libguile/srfi-4.c
+++ b/libguile/srfi-4.c
@@ -257,7 +257,8 @@ SCM_DEFINE (scm_make_srfi_4_vector, "make-srfi-4-vector", 2, 1, 0,
case SCM_ARRAY_ELEMENT_TYPE_C64:
{
SCM ret = scm_i_make_typed_bytevector (scm_to_size_t (len), i);
- if (SCM_UNBNDP (fill))
+
+ if (SCM_UNBNDP (fill) || scm_is_eq (len, SCM_INUM0))
; /* pass */
else if (scm_is_true (scm_zero_p (fill)))
memset (SCM_BYTEVECTOR_CONTENTS (ret), 0,