summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-25 12:39:47 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-25 13:10:32 -0800
commit1cdc89d3a92704ca94e13c999401cd219d1c696f (patch)
tree2bd83ea76091ffcd676402637ba40ce5a87140e9 /sv.c
parent24579eec3367fac01c9608681d22012f67030694 (diff)
downloadperl-1cdc89d3a92704ca94e13c999401cd219d1c696f.tar.gz
sv.c:dirp_dup: Avoid compiler warning
Some compilers complain, because -1 is being assigned to an unsigned variable. This variable is not actually used before being assigned to, but we have to initialise it as some other compilers cannot detect that.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 45188ccf1b..d94cf2c63a 100644
--- a/sv.c
+++ b/sv.c
@@ -11326,7 +11326,7 @@ Perl_dirp_dup(pTHX_ DIR *const dp, CLONE_PARAMS *const param)
register const Direntry_t *dirent;
char smallbuf[256];
char *name = NULL;
- STRLEN len = -1;
+ STRLEN len = 0;
long pos;
#endif