[vlc-devel] [vlc-devl][patch] Fixed uninitialized variable

sharad dixit sharad.eminence at gmail.com
Tue Jan 3 17:41:49 CET 2012


hi,

Fixed patch for uninitialized variable in modules/gui/qt4/dialogs

>From 5bae46a6631eba97cbc87dad859d0d463346eb8c Mon Sep 17 00:00:00 2001
From: Sharad Dixit <sharad.eminence at gmail.com>
Date: Tue, 3 Jan 2012 11:17:21 -0500
Subject: [PATCH 2/2]  uninitialized variable

---
 bookmarks.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bookmarks.cpp b/bookmarks.cpp
index fb1c85e..7404459 100644
--- a/bookmarks.cpp
+++ b/bookmarks.cpp
@@ -110,7 +110,7 @@ void BookmarksDialog::update()
     if( !p_input ) return;

     seekpoint_t **pp_bookmarks;
-    int i_bookmarks;
+    int i_bookmarks = 0;

     if( bookmarksList->topLevelItemCount() > 0 )
     {
--
1.7.5.1



-- 
-Sharad Dixit
  IIITA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120103/45acdd1f/attachment.html>


More information about the vlc-devel mailing list