xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH 1/2] mg-allocate: Fix an "uninitialized value" warning
@ 2014-04-17 15:14 Ian Jackson
  2014-04-17 15:14 ` [OSSTEST PATCH 2/2] preseed_base: drop obsolete references to NetGateway and NetNetmask Ian Jackson
  2014-04-22  8:42 ` [OSSTEST PATCH 1/2] mg-allocate: Fix an "uninitialized value" warning Ian Campbell
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Jackson @ 2014-04-17 15:14 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Ian Campbell

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@eu.citrix.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-22  8:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17 15:14 [OSSTEST PATCH 1/2] mg-allocate: Fix an "uninitialized value" warning Ian Jackson
2014-04-17 15:14 ` [OSSTEST PATCH 2/2] preseed_base: drop obsolete references to NetGateway and NetNetmask Ian Jackson
2014-04-22  8:42 ` [OSSTEST PATCH 1/2] mg-allocate: Fix an "uninitialized value" warning Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).