From: JP Dinger Date: Thu, 5 Mar 2009 13:15:38 +0000 (+0100) Subject: Immunify libvlc_exception_clear() from NULL arguments. X-Git-Tag: 1.0.0-pre1~304 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=646beb8c34c26e0d8f79d0dd257ad00e24b51dbf;p=vlc Immunify libvlc_exception_clear() from NULL arguments. Signed-off-by: RĂ©mi Denis-Courmont --- 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;