[vlc-devel] [PATCH] Fix for 'no-return-in-nonvoid function intf.c'

Dominique Leuenberger dominique at leuenberger.net
Sun Dec 21 13:10:05 CET 2008


MAke sure we always return defined values.
I: Program returns random data in a function
E: vlc-beta no-return-in-nonvoid-function intf.c:341
---
 modules/access/vcdx/intf.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/access/vcdx/intf.c b/modules/access/vcdx/intf.c
index 338f13a..12e61df 100644
--- a/modules/access/vcdx/intf.c
+++ b/modules/access/vcdx/intf.c
@@ -338,6 +338,8 @@ static int InitThread( intf_thread_t * p_intf )
     p_intf->p_sys->b_key_pressed = false;
 
     vlc_mutex_unlock( &p_intf->change_lock );
+    /* make sure we return a value */
+    return 0;
 }
 
 /*****************************************************************************
-- 
1.5.4.5




More information about the vlc-devel mailing list