summaryrefslogtreecommitdiff
path: root/ext/File-Glob
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-09-06 15:06:06 +0200
committerNicholas Clark <nick@ccl4.org>2011-09-06 17:44:42 +0200
commit924d3af1d7b5591ebab03fef27f1aef6364027da (patch)
tree2c52b2a2cde0d0efd034ba561a019750db63737c /ext/File-Glob
parenta03432f295f78eec5042079a07e54fd2afb2e56e (diff)
downloadperl-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.xs2
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;