[vlc-devel] commit: Fix uninitialized variables (CID 242) (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Oct 1 20:33:20 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct  1 11:29:57 2008 -0700| [2f066806f4066261509bde9f84b9fba027d1e43e] | committer: Jean-Baptiste Kempf 

Fix uninitialized variables (CID 242)

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

 .../dynamicoverlay/dynamicoverlay_commands.c       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c b/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
index b50acd0..03e28b2 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
@@ -242,8 +242,9 @@ static int parser_SetTextAlpha( char *psz_command, char *psz_end,
 static int parser_SetTextColor( char *psz_command, char *psz_end,
                                 commandparams_t *p_params )
 {
-    int r, g, b;
+    int r = 0, g = 0, b = 0;
     VLC_UNUSED(psz_end);
+
     skip_space( &psz_command );
     if( isdigit( *psz_command ) )
     {




More information about the vlc-devel mailing list