Browse Source

Fix uninitialized var, fixes #2539

Jordi Boggiano 11 years ago
parent
commit
a5c6319d46
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Command/LicensesCommand.php

+ 1 - 0
src/Composer/Command/LicensesCommand.php

@@ -55,6 +55,7 @@ EOT
 
         $versionParser = new VersionParser;
 
+        $packages = array();
         foreach ($repo->getPackages() as $package) {
             $packages[$package->getName()] = $package;
         }