]> git.sesse.net Git - vlc/blobdiff - src/misc/messages.c
Remove MALLOC_NULL and use calloc when needed.
[vlc] / src / misc / messages.c
index 29031f042d6fe22344c54fa29a3f4270546f9468..c26fccaabe7359294b092c4e51fda225d08cb45a 100644 (file)
@@ -595,7 +595,9 @@ static msg_context_t* GetContext(void)
     msg_context_t *p_ctx = vlc_threadvar_get( &msg_context );
     if( p_ctx == NULL )
     {
-        MALLOC_NULL( p_ctx, msg_context_t );
+        p_ctx = malloc( sizeof( msg_context_t ) );
+        if( !p_ctx )
+            return NULL;
         p_ctx->psz_message = NULL;
         vlc_threadvar_set( &msg_context, p_ctx );
     }