From 646beb8c34c26e0d8f79d0dd257ad00e24b51dbf Mon Sep 17 00:00:00 2001 From: JP Dinger Date: Thu, 5 Mar 2009 14:15:38 +0100 Subject: [PATCH] Immunify libvlc_exception_clear() from NULL arguments. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/control/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/control/core.c b/src/control/core.c index e52b3cb653..90ae37c60b 100644 --- a/src/control/core.c +++ b/src/control/core.c @@ -43,6 +43,8 @@ void libvlc_exception_init( libvlc_exception_t *p_exception ) void libvlc_exception_clear( libvlc_exception_t *p_exception ) { + if( NULL == p_exception ) + return; if( p_exception->psz_message != nomemstr ) free( p_exception->psz_message ); p_exception->psz_message = NULL; -- 2.39.2