]> git.sesse.net Git - vlc/blobdiff - modules/control/hotkeys.c
Remove MALLOC_(VOID|ERR). (and use calloc instead of malloc+memset)
[vlc] / modules / control / hotkeys.c
index 73b0e718279d798ef51c418f7c7316d5239d8e90..aaa6014197188053fe5f7eafd4186a9173f81ed0 100644 (file)
@@ -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;