diff -ur a/bash-4.2/lib/glob/glob.c b/bash-4.2/lib/glob/glob.c --- a/bash-4.2/lib/glob/glob.c 2009-11-15 01:39:30.000000000 -0200 +++ b/bash-4.2/lib/glob/glob.c 2015-04-29 23:07:08.865080150 -0200 @@ -437,6 +437,8 @@ int nalloca; struct globval *firstmalloc, *tmplink; char *convfn; + int dirlen; + struct stat finfo; lastlink = 0; count = lose = skip = add_current = 0; @@ -478,9 +480,6 @@ vector to return and bail immediately. */ if (skip == 0 && glob_pattern_p (pat) == 0) { - int dirlen; - struct stat finfo; - if (glob_testdir (dir) < 0) return ((char **) &glob_error_return);