summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/node.c b/node.c
index cd1c3f0b0a..548e4f9fe1 100644
--- a/node.c
+++ b/node.c
@@ -677,10 +677,8 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("format: $[nd_nth]");
ANN("example: $&, $`, $', $+");
F_CUSTOM1(nd_nth, "variable") {
- char name[3];
- name[0] = '$';
+ char name[3] = "$ ";
name[1] = (char)node->nd_nth;
- name[2] = '\0';
A(name);
}
return;