aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prism/prism.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism/prism.c b/prism/prism.c
index 9ab674de48..7e5d3e48b6 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -15069,7 +15069,7 @@ parse_expression_infix(pm_parser_t *parser, pm_node_t *node, pm_binding_power_t
}
}
- if (!interpolated) {
+ if (!interpolated && total_length > 0) {
void *memory = malloc(total_length);
if (!memory) abort();