Break out $shareix assignment from $4. (We are going to want to put
some code just after this point which will want to do regexp matching,
which would trash $4.)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
my $restype= defined($2) ? $2 : 'host';
$restype= 'share-host' if $restype eq 'S';
my $resname= $3;
- my $shareix= defined($4) ? $4+0 : '*';
+ my $shareix= $4;
+ $shareix= defined($shareix) ? $shareix+0 : '*';
my $shareixcond = $shareix eq '*' ? '' : "AND shareix = $shareix";
my @resnames;