[vlc-commits] commit: osd_simple: fix a potential null-deref ( can only be triggered when OOM). ( Rémi Duraffort )

git at videolan.org git at videolan.org
Fri Aug 20 20:47:52 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Aug 18 22:29:14 2010 +0200| [3b98bdf8955176015dd51233cd1d9228ab625d66] | committer: Rémi Duraffort 

osd_simple: fix a potential null-deref (can only be triggered when OOM).

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

 modules/misc/osd/simple.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/osd/simple.c b/modules/misc/osd/simple.c
index f769242..f8ea4b7 100644
--- a/modules/misc/osd/simple.c
+++ b/modules/misc/osd/simple.c
@@ -504,7 +504,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
     return VLC_SUCCESS;
 
 error:
-    msg_Err( p_menu, "parsing file failed (returned %d)", result );
+    msg_Err( p_this, "parsing file failed (returned %d)", result );
     if( p_menu )
         osd_MenuFree( p_menu );
     fclose( fd );



More information about the vlc-commits mailing list