From: Eric Wong Date: Sun, 11 Jan 2015 04:43:59 +0000 (+0000) Subject: import_slrnspool: fix off-by-one error X-Git-Tag: v1.0.0~1093 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e80c2d9a9e3d891105ad7bfcd1369a020e6be185;p=thirdparty%2Fpublic-inbox.git import_slrnspool: fix off-by-one error We start with zero and only store the next valid ID. --- diff --git a/scripts/import_slrnspool b/scripts/import_slrnspool index 560c08c24..fec7ebf15 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 {