From e80c2d9a9e3d891105ad7bfcd1369a020e6be185 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 11 Jan 2015 04:43:59 +0000 Subject: import_slrnspool: fix off-by-one error We start with zero and only store the next valid ID. --- scripts/import_slrnspool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/import_slrnspool b/scripts/import_slrnspool index 560c08c2..fec7ebf1 100755 --- a/scripts/import_slrnspool +++ b/scripts/import_slrnspool @@ -25,7 +25,7 @@ use Data::Dumper; print STDERR Dumper($cfg); sub get_min { my ($cfg) = @_; - $cfg->{importslrnspoolstate} || 1 + $cfg->{importslrnspoolstate} || 0; } sub set_min { -- cgit v1.2.3-24-ge0c7