marsadm: fix warning

This commit is contained in:
Thomas Schoebel-Theuer 2014-03-01 20:37:41 +01:00
parent a43181a84f
commit 1cb78bae47
1 changed files with 1 additions and 1 deletions

View File

@ -1283,7 +1283,7 @@ sub create_res {
set_link($host, "$resdir/primary");
set_link($size, "$resdir/syncstatus-$host");
my $startnr = get_link("$resdir/maxnr", 2);
if (defined($startnr) && $startnr > 0) {
if (defined($startnr) && $startnr ne "" && $startnr > 0) {
$startnr += 1000;
} else {
$startnr = 1;