]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import_slrnspool: fix off-by-one error
authorEric Wong <e@80x24.org>
Sun, 11 Jan 2015 04:43:59 +0000 (04:43 +0000)
committerEric Wong <e@80x24.org>
Sun, 11 Jan 2015 04:43:59 +0000 (04:43 +0000)
We start with zero and only store the next valid ID.

scripts/import_slrnspool

index 560c08c24137d351082eea2ec4f5d7bad573d1e7..fec7ebf15b092ce2118aa43bb96e7af8af4fe902 100755 (executable)
@@ -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 {