diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2013-11-14 13:33:12 +0100 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2013-11-14 14:03:26 +0100 |
commit | 300feaf1aad88e7e7a03a245926a5c63900f22d3 (patch) | |
tree | d1f7f6a647e589b5462751a4b89b86be8941c7bf /ext/File-Glob | |
parent | 3bd46979e0ad1e0a1f7feeac9dd3cc3c1bbcc75e (diff) | |
download | perl-300feaf1aad88e7e7a03a245926a5c63900f22d3.tar.gz |
Compliance: Mixed declarations not allowed in some pre-C99 compilers
Diffstat (limited to 'ext/File-Glob')
-rw-r--r-- | ext/File-Glob/bsd_glob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/File-Glob/bsd_glob.c b/ext/File-Glob/bsd_glob.c index 8090b194ae..2ba0d49407 100644 --- a/ext/File-Glob/bsd_glob.c +++ b/ext/File-Glob/bsd_glob.c @@ -744,9 +744,6 @@ glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, int nocase; char buf[MAXPATHLEN]; - assert(pattern < restpattern_last); - assert(restpattern < restpattern_last); - /* * The readdirfunc declaration can't be prototyped, because it is * assigned, below, to two functions which are prototyped in glob.h @@ -755,6 +752,9 @@ glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, */ Direntry_t *(*readdirfunc)(DIR*); + assert(pattern < restpattern_last); + assert(restpattern < restpattern_last); + if (pathend > pathend_last) return (1); *pathend = BG_EOS; |