Commit 646beb8c authored by JP Dinger's avatar JP Dinger Committed by Rémi Denis-Courmont

Immunify libvlc_exception_clear() from NULL arguments.

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 86783662
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment