From 1cdc89d3a92704ca94e13c999401cd219d1c696f Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 25 Dec 2011 12:39:47 -0800 Subject: [PATCH] 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. --- sv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv.c b/sv.c index 45188cc..d94cf2c 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 -- 2.7.4