summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 958da1dbbb0..da2b7ac4330 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3254,7 +3254,10 @@ allocate_vectorlike (ptrdiff_t len)
/* eassert (!handling_signal); */
if (len == 0)
- return zero_vector;
+ {
+ MALLOC_UNBLOCK_INPUT;
+ return zero_vector;
+ }
nbytes = header_size + len * word_size;