Ver código fonte

components/freertos: fix a bug with an uninitialised return value

introduced in d63dac0
Ivan Grokhotkov 9 anos atrás
pai
commit
adfb9fafaa
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      components/freertos/queue.c

+ 1 - 0
components/freertos/queue.c

@@ -1156,6 +1156,7 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue;
 				}
 			}
 			#endif /* configUSE_QUEUE_SETS */
+			xReturn = pdPASS;
 		}
 		else
 		{