[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 1/2] mg-allocate: Fix an "uninitialized value" warning
If $ok is 0, $got_shareix could be undef but would still be used for Info in the return value. Initialise it to "x". Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- mg-allocate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg-allocate b/mg-allocate index 00182f7..fc1b394 100755 --- a/mg-allocate +++ b/mg-allocate @@ -103,7 +103,7 @@ END $resq->execute($restype, $resname); my $ok= 0; - my $got_shareix; + my $got_shareix = 'x'; while (my $candrow= $resq->fetchrow_hashref()) { my $desc= "$candrow->{restype}/$candrow->{resname}". "/$candrow->{shareix}"; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |