2e866a3
diff --git a/rsnapshot-program.pl b/rsnapshot-program.pl
2e866a3
index e6215f4..a131517 100755
2e866a3
--- a/rsnapshot-program.pl
2e866a3
+++ b/rsnapshot-program.pl
2e866a3
@@ -3947,13 +3947,13 @@ sub rsync_backup_point {
2e866a3
 	# delte the traps manually
2e866a3
 	# umount LVM Snapshot if it is mounted
2e866a3
 	if (1 == $traps{"linux_lvm_mountpoint"}) {
2e866a3
-		undef $traps{"linux_lvm_mountpoint"};
2e866a3
+		$traps{"linux_lvm_mountpoint"} = 0;
2e866a3
 		linux_lvm_unmount();
2e866a3
 	}
2e866a3
 
2e866a3
 	# destroy snapshot created by rsnapshot
2e866a3
 	if (0 ne $traps{"linux_lvm_snapshot"}) {
2e866a3
-		undef $traps{"linux_lvm_snapshot"};
2e866a3
+		$traps{"linux_lvm_snapshot"} = 0;
2e866a3
 		linux_lvm_snapshot_del(linux_lvm_parseurl($lvm_src));
2e866a3
 	}
2e866a3
 }