diff --git a/components/drivers/src/dataqueue.c b/components/drivers/src/dataqueue.c index 7aea0ab246..bfe8e12573 100644 --- a/components/drivers/src/dataqueue.c +++ b/components/drivers/src/dataqueue.c @@ -43,7 +43,7 @@ rt_data_queue_init(struct rt_data_queue *queue, rt_list_init(&(queue->suspended_push_list)); rt_list_init(&(queue->suspended_pop_list)); - + queue->queue = (struct rt_data_item *)rt_malloc(sizeof(struct rt_data_item) * size); if (queue->queue == RT_NULL) {