diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-09-06 15:06:06 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-09-06 17:44:42 +0200 |
commit | 924d3af1d7b5591ebab03fef27f1aef6364027da (patch) | |
tree | 2c52b2a2cde0d0efd034ba561a019750db63737c /ext/File-Glob | |
parent | a03432f295f78eec5042079a07e54fd2afb2e56e (diff) | |
download | perl-924d3af1d7b5591ebab03fef27f1aef6364027da.tar.gz |
In Glob.xs, use memset() instead of bzero()
3c97495f56fb647c used bzero(), which isn't available on some platforms.
Diffstat (limited to 'ext/File-Glob')
-rw-r--r-- | ext/File-Glob/Glob.xs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/File-Glob/Glob.xs b/ext/File-Glob/Glob.xs index 5a08a0d079..91b9f4d5f1 100644 --- a/ext/File-Glob/Glob.xs +++ b/ext/File-Glob/Glob.xs @@ -64,7 +64,7 @@ PPCODE: } /* call glob */ - bzero(&pglob, sizeof(glob_t)); + memset(&pglob, 0, sizeof(glob_t)); retval = bsd_glob(pattern, flags, errfunc, &pglob); GLOB_ERROR = retval; |