X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcontrol%2Fhotkeys.c;h=aaa6014197188053fe5f7eafd4186a9173f81ed0;hb=12879a4c3b71a9d566a20a73a72430ca44b17e08;hp=73b0e718279d798ef51c418f7c7316d5239d8e90;hpb=30b6a950676d59cf110a5ecdfa7798b2311274bf;p=vlc diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 73b0e71827..aaa6014197 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -109,7 +109,9 @@ static int Open( vlc_object_t *p_this ) { intf_thread_t *p_intf = (intf_thread_t *)p_this; intf_sys_t *p_sys; - MALLOC_ERR( p_sys, intf_sys_t ); + p_sys = malloc( sizeof( intf_sys_t ) ); + if( !p_sys ) + return VLC_ENOMEM; p_intf->p_sys = p_sys; p_intf->pf_run = Run;