Alexander Nicolaysen =?UTF-8?Q?S=C3=B8rnes=20?=: screenshots.php: Prevent use of unitialized variable
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Jan 12 08:57:18 CST 2014
Module: appdb
Branch: master
Commit: e58d239b999b8526a7ccca181f00201f50c3fe91
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=e58d239b999b8526a7ccca181f00201f50c3fe91
Author: Alexander Nicolaysen Sørnes <alexsornes at gmail.com>
Date: Sat Jan 11 17:51:04 2014 +0100
screenshots.php: Prevent use of unitialized variable
---
screenshots.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/screenshots.php b/screenshots.php
index d8ae285..160eefe 100644
--- a/screenshots.php
+++ b/screenshots.php
@@ -68,6 +68,8 @@ if($hResult && query_num_rows($hResult))
// display thumbnails
$c = 1;
+
+ $iCurrentVersionId = 0;
// optimization so we don't have to perform as many database queries
// only update this variable when $iCurrentVersionId changes
More information about the wine-cvs
mailing list