summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-22 01:40:09 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-22 01:40:09 +0000
commit8da932fe46bad40937605633605dd61fd16fcde5 (patch)
treea54a2d3c0e38a908a67e0912138790f6081cd0b6 /dir.c
parentd5704eb61aee97081c0ceed99608be4287835c23 (diff)
* dir.c (glob_helper): C99(gcc)-ism.
* time.c (find_time_t): GUESS macro needs the variable named ``result'' always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 0b293e3dd1..7ded65420b 100644
--- a/dir.c
+++ b/dir.c
@@ -1267,8 +1267,9 @@ glob_helper(
if (magical || recursive) {
struct dirent *dp;
+ DIR *dirp;
IF_HAVE_READDIR_R(struct dirent entry);
- DIR *dirp = do_opendir(*path ? path : ".", flags);
+ dirp = do_opendir(*path ? path : ".", flags);
if (dirp == NULL) return 0;
while (READDIR(dirp, enc, &entry, dp)) {