@matheusbsbs / matheus-bagliano / commits / 67e4baf826
Fork 0

Cleanup uninitialized value in chomp

which happens if you use ActiveState Perl and a pipe workaround specially for it. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Alex Riesen committed Jan 22, 2007 at 15:58 UTC 67e4baf82679e6362d950f6a80a9a261cf266555
1 file changed +1 -1
perl/Git.pm
+1 -1
@@ -275,7 +275,7 @@ sub command {
275
276 } else {
277 my @lines = <$fh>;
278 - chomp @lines;
278 + defined and chomp for @lines;
279 try {
280 _cmd_close($fh, $ctx);
281 } catch Git::Error::Command with {