'$_' should be marked as a local variable in Sys::Guestfs::Lib::open_guest.
[libguestfs.git] / perl / lib / Sys / Guestfs / Lib.pm
index 84b9428..fe21981 100644 (file)
@@ -118,6 +118,7 @@ and this function can only open disk images.
 
 sub open_guest
 {
+    local $_;
     my $first = shift;
     my %params = @_;