]> git.sur5r.net Git - freertos/commitdiff
Ensure the queue registry gets initialised.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 16 Jul 2008 09:08:32 +0000 (09:08 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 16 Jul 2008 09:08:32 +0000 (09:08 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@404 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

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