]> git.sur5r.net Git - freertos/blobdiff - Source/queue.c
Ensure the queue registry gets initialised.
[freertos] / Source / queue.c
index 00f216f537f5eff1f3b154836c6e56f4b307076f..984ece2195128af48644643ecec64e07a00ee95f 100644 (file)
@@ -162,7 +162,7 @@ unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR( const xQueueHandle pxQueue
        /* The queue registry is simply an array of xQueueRegistryItem structures.\r
        The pcQueueName member of a structure being NULL is indicative of the\r
        array position being vacant. */\r
-       xQueueRegistryItem xQueueRegistry[ configQUEUE_REGISTRY_SIZE ];\r
+       xQueueRegistryItem xQueueRegistry[ configQUEUE_REGISTRY_SIZE ] = { 0 };\r
 \r
        /* Removes a queue from the registry by simply setting the pcQueueName\r
        member to NULL. */\r