summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-10 09:58:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-10 09:58:39 +0000
commitb010cccc900a12160fc6aa95c80259d6622af8fe (patch)
tree9ac8522146a943d34bce710c803519215b336805 /dir.c
parent19c42c0740145dec1be93c332647f4310ea19918 (diff)
* dir.c (glob_helper): should have proceed link when link->path
was non existing symbolic link. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dir.c b/dir.c
index fcb4be7..6814e4a 100644
--- a/dir.c
+++ b/dir.c
@@ -779,14 +779,14 @@ glob_helper(path, sub, flags, func, arg)
glob_helper(t, t+len, flags, func, arg);
free(t);
}
- tmp = link;
- link = link->next;
- free(tmp->path);
- free(tmp);
}
else {
rb_sys_warning(link->path);
}
+ tmp = link;
+ link = link->next;
+ free(tmp->path);
+ free(tmp);
}
break;
}