summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/alloc.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bebb36b50a8..8bc7d6d24a4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-08 Eli Zaretskii <eliz@gnu.org>
+
+ * alloc.c (allocate_vectorlike): Fix last change.
+
2012-06-08 Dmitry Antipov <dmantipov@yandex.ru>
Block-based vector allocation of small vectors.
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;