[vlc-devel] commit: Fix for 'no-return-in-nonvoid function intf.c' ( Dominique Leuenberger )
git version control
git at videolan.org
Sun Dec 21 13:22:54 CET 2008
vlc | branch: master | Dominique Leuenberger <dominique at leuenberger.net> | Sun Dec 21 13:10:05 2008 +0100| [70a5a293a8142d649a35fee68066aebb0b2418e7] | committer: Rémi Denis-Courmont
Fix for 'no-return-in-nonvoid function intf.c'
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
Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70a5a293a8142d649a35fee68066aebb0b2418e7
---
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;
}
/*****************************************************************************
More information about the vlc-devel
mailing list