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

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



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 redhat com>
---
 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


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