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

Michal Privoznik mprivozn at redhat.com
Mon Aug 28 14:45:48 UTC 2017


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 at 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




More information about the libvir-list mailing list