aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 6befada66d..39a5922661 100644
--- a/pack.c
+++ b/pack.c
@@ -1221,7 +1221,7 @@ hex2num(char c)
} while (0)
#define PACK_ITEM_ADJUST() do { \
- if (tmp_len > 0) \
+ if (tmp_len > 0 && !block_p) \
rb_ary_store(ary, RARRAY_LEN(ary)+tmp_len-1, Qnil); \
} while (0)