[libvirt-php][PATCH 3/3] examples: Initialize $ret in index.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In bd258258 when adding a simple example to demonstrate NWFilter
APIs I've forgot to initialize $ret variable which is then used
(possibly undefined).

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 examples/index.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/index.php b/examples/index.php
index aa3ed51..01aa532 100644
--- a/examples/index.php
+++ b/examples/index.php
@@ -627,6 +627,7 @@
         echo "<h2>Network filters</h2>";
         echo "Here you can see all the network filters defined";
 
+        $ret = false;
         if (array_key_exists('subaction', $_GET)) {
             $uuid = $_GET['uuid'];
             $name = $_GET['name'];
-- 
2.13.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux