summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 15:54:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 15:54:37 +0000
commit9ac15a773dac304e4bb2617ad719b050085d914f (patch)
tree43de3d17abba289ba15b09d76239f31b5efcb52f /dir.c
parent7e35911e105409fabe48dc2a6214479b6a6ffa24 (diff)
* dir.c (push_braces): do not push_braces() unless rbrace is found.
(ruby-bugs-ja:PR#469) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index b2f438e..156c1d5 100644
--- a/dir.c
+++ b/dir.c
@@ -929,7 +929,7 @@ push_braces(ary, s, flags)
p++;
}
- if (lbrace) {
+ if (lbrace && rbrace) {
int len = strlen(s);
buf = xmalloc(len + 1);
memcpy(buf, s, lbrace-s);