From: RĂ©mi Duraffort Date: Wed, 18 Aug 2010 20:29:14 +0000 (+0200) Subject: osd_simple: fix a potential null-deref (can only be triggered when OOM). X-Git-Tag: 1.2.0-pre1~5380 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=3b98bdf8955176015dd51233cd1d9228ab625d66 osd_simple: fix a potential null-deref (can only be triggered when OOM). --- diff --git a/modules/misc/osd/simple.c b/modules/misc/osd/simple.c index f76924217d..f8ea4b76a4 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 );