summaryrefslogtreecommitdiff
path: root/ext/File-Glob/Glob.xs
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-15 23:17:02 +0100
committerNicholas Clark <nick@ccl4.org>2009-10-15 23:17:02 +0100
commitd3d348849d1e04f91e458937b2aba39c00de63af (patch)
treea0047853d605841c279608b3e98ad555131ae1f4 /ext/File-Glob/Glob.xs
parentf584eb2d9f7ac11f83863d38a4f1f95cd9775aa2 (diff)
downloadperl-d3d348849d1e04f91e458937b2aba39c00de63af.tar.gz
Replace sv_2mortal(newSVpvn(...)) with newSVpvn_flags(..., SVs_TEMP)
Diffstat (limited to 'ext/File-Glob/Glob.xs')
-rw-r--r--ext/File-Glob/Glob.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/File-Glob/Glob.xs b/ext/File-Glob/Glob.xs
index 3a526fbf03..59345e7e92 100644
--- a/ext/File-Glob/Glob.xs
+++ b/ext/File-Glob/Glob.xs
@@ -59,8 +59,8 @@ PPCODE:
EXTEND(sp, pglob.gl_pathc);
for (i = 0; i < pglob.gl_pathc; i++) {
/* printf("# bsd_glob: %s\n", pglob.gl_pathv[i]); */
- tmp = sv_2mortal(newSVpvn(pglob.gl_pathv[i],
- strlen(pglob.gl_pathv[i])));
+ tmp = newSVpvn_flags(pglob.gl_pathv[i], strlen(pglob.gl_pathv[i]),
+ SVs_TEMP);
TAINT;
SvTAINT(tmp);
PUSHs(tmp);