Skip to content

Commit

Permalink
on windows, _findfirst() returns -1 if no match
Browse files Browse the repository at this point in the history
  • Loading branch information
Orc committed Oct 20, 2019
1 parent 8bd5b04 commit 6de718c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wincall.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ glob_t *dta;

}

unless (find_ctx = _findfirst(path, &entry)) {
if ( (find_ctx = _findfirst(path, &entry)) == -1 ) {
/* no matches for this pattern; if permit_nomatch,
* add it verbatim to dta, otherwise fail
*/
Expand Down

0 comments on commit 6de718c

Please sign in to comment.