[vlc-commits] Fix potential usage of an uninitialized pointer
Rémi Duraffort
git at videolan.org
Sun Jan 6 17:10:13 CET 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jan 4 22:41:12 2013 +0100| [92498ed70e94da04c531a564c6d8d206150b4f03] | committer: Rémi Duraffort
Fix potential usage of an uninitialized pointer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92498ed70e94da04c531a564c6d8d206150b4f03
---
modules/stream_filter/smooth/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_filter/smooth/utils.c b/modules/stream_filter/smooth/utils.c
index 2ca5888..5c180dc 100644
--- a/modules/stream_filter/smooth/utils.c
+++ b/modules/stream_filter/smooth/utils.c
@@ -178,7 +178,7 @@ void sms_queue_free( sms_queue_t* queue )
int sms_queue_put( sms_queue_t *queue, const uint64_t value )
{
/* Remove the last (and oldest) item */
- item_t *item, *prev;
+ item_t *item, *prev = NULL;
int count = 0;
for( item = queue->first; item != NULL; item = item->next )
{
More information about the vlc-commits
mailing list