This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a03432f
)
In Glob.xs, use memset() instead of bzero()
author
Nicholas Clark
<nick@ccl4.org>
Tue, 6 Sep 2011 13:06:06 +0000
(15:06 +0200)
committer
Nicholas Clark
<nick@ccl4.org>
Tue, 6 Sep 2011 15:44:42 +0000
(17:44 +0200)
3c97495f56fb647c
used bzero(), which isn't available on some platforms.
ext/File-Glob/Glob.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/File-Glob/Glob.xs
b/ext/File-Glob/Glob.xs
index
5a08a0d
..
91b9f4d
100644
(file)
--- 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;