diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-01-08 12:03:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-01-08 13:26:14 +0900 |
commit | b81db531b24a6824bf5b89d8460baed5d5418835 (patch) | |
tree | 8f14a7c37151c61d482a382e25aadf9bb984ff16 /compile.c | |
parent | 1a06bee027d5c5b65ed0aaee76ee0040554d4efd (diff) |
[Bug #21011] `nd_value` is NULL in massign
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12530
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10417,7 +10417,7 @@ compile_shareable_literal_constant(rb_iseq_t *iseq, LINK_ANCHOR *ret, enum rb_pa VALUE lit = Qnil; DECL_ANCHOR(anchor); - enum node_type type = nd_type(node); + enum node_type type = node ? nd_type(node) : NODE_NIL; switch (type) { case NODE_TRUE: *value_p = Qtrue; |