From: richardbarry Date: Wed, 16 Jul 2008 09:08:32 +0000 (+0000) Subject: Ensure the queue registry gets initialised. X-Git-Tag: V5.0.3~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=acb5a7f0d6aedc3822da87694143e28c012bf7f9;p=freertos Ensure the queue registry gets initialised. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@404 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/queue.c b/Source/queue.c index 00f216f53..984ece219 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -162,7 +162,7 @@ unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR( const xQueueHandle pxQueue /* The queue registry is simply an array of xQueueRegistryItem structures. The pcQueueName member of a structure being NULL is indicative of the array position being vacant. */ - xQueueRegistryItem xQueueRegistry[ configQUEUE_REGISTRY_SIZE ]; + xQueueRegistryItem xQueueRegistry[ configQUEUE_REGISTRY_SIZE ] = { 0 }; /* Removes a queue from the registry by simply setting the pcQueueName member to NULL. */