summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-03-16 08:56:58 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-03-16 08:56:58 -0300
commit2abfec49c6d28b25f56e4a0487670f6b41bf3424 (patch)
tree37e4d7ebb23da23666a7ce22a98a02d67d88fc8a /usr/local/sbin
parentfba196c34bc06b6c60b331e46b4cc34ee9079a03 (diff)
downloadpfsense-2abfec49c6d28b25f56e4a0487670f6b41bf3424.zip
pfsense-2abfec49c6d28b25f56e4a0487670f6b41bf3424.tar.gz
Initialize array to silence warnings on foreach
Diffstat (limited to 'usr/local/sbin')
-rw-r--r--usr/local/sbin/prefixes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/sbin/prefixes.php b/usr/local/sbin/prefixes.php
index af915e3..b0920cb 100644
--- a/usr/local/sbin/prefixes.php
+++ b/usr/local/sbin/prefixes.php
@@ -5,6 +5,7 @@ if(!file_exists($leases_file)) {
exit(1);
}
+$duid_arr = array();
foreach(file($leases_file) as $line) {
// echo "$line";
if(preg_match("/^(ia-[np][ad])[ ]+\"(.*?)\"/i ", $line, $duidmatch)) {
OpenPOWER on IntegriCloud