Alexander Nicolaysen Sørnes : application_queue: Guard against unitialized variables
Chris Morgan
cmorgan at winehq.org
Tue Jan 22 17:36:37 CST 2008
Module: appdb
Branch: master
Commit: 03b614fd1003642a1c6d4e3b3391a123d4d2dd8f
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=03b614fd1003642a1c6d4e3b3391a123d4d2dd8f
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Wed Jan 23 00:31:24 2008 +0100
application_queue: Guard against unitialized variables
---
include/application_queue.php | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/include/application_queue.php b/include/application_queue.php
index 06533d8..82c8383 100644
--- a/include/application_queue.php
+++ b/include/application_queue.php
@@ -14,6 +14,9 @@ class application_queue
{
$this->oApp = new application($iAppId, $oRow);
+ $iVersionId = null;
+ $iVendorId = null;
+
/* If this is an existing application then there must be a version
accompanying it */
if($this->oApp->iAppId)
@@ -36,11 +39,6 @@ class application_queue
}
$iVendorId = $this->oApp->iVendorId;
}
- else
- {
- $iVersionId = null;
- $iVendorId = null;
- }
$this->oVendor = new vendor($iVendorId);
More information about the wine-cvs
mailing list