[vlc-commits] audioscrobbler: prevent an endless loop inside the main loop

Fabian Keil git at videolan.org
Wed Jul 18 08:14:35 CEST 2012


vlc/vlc-2.0 | branch: master | Fabian Keil <fk at fabiankeil.de> | Sun Jun 17 13:56:47 2012 +0200| [f9ad8c262e41004cf081477c80920429300c1b42] | committer: Jean-Baptiste Kempf

audioscrobbler: prevent an endless loop inside the main loop

Fixes the clang complaint: The right operand of '<' is a garbage value

This might fix #6286.

Signed-off-by: Rafaël Carré <funman at videolan.org>
(cherry picked from commit 8cdc20d360fbefa12671abf8ff30c41384d110c7)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=f9ad8c262e41004cf081477c80920429300c1b42
---

 modules/misc/audioscrobbler.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index 33c1238..ba79ce2 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -768,7 +768,7 @@ static void Run(intf_thread_t *p_intf)
     bool                    b_handshaked = false;
 
     /* data about audioscrobbler session */
-    mtime_t                 next_exchange;      /**< when can we send data  */
+    mtime_t                 next_exchange = -1; /**< when can we send data  */
     unsigned int            i_interval;         /**< waiting interval (secs)*/
 
     intf_sys_t *p_sys = p_intf->p_sys;



More information about the vlc-commits mailing list