diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-15 23:17:02 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-15 23:17:02 +0100 |
commit | d3d348849d1e04f91e458937b2aba39c00de63af (patch) | |
tree | a0047853d605841c279608b3e98ad555131ae1f4 /ext/File-Glob/Glob.xs | |
parent | f584eb2d9f7ac11f83863d38a4f1f95cd9775aa2 (diff) | |
download | perl-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.xs | 4 |
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); |