From 1cb78bae4776a8c517c74a04f7d7ec8a855eea05 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sat, 1 Mar 2014 20:37:41 +0100 Subject: [PATCH] marsadm: fix warning --- userspace/marsadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/marsadm b/userspace/marsadm index 912f9b87..3d171a91 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -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;