Просмотр исходного кода

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

introduced in d63dac0
Ivan Grokhotkov 9 лет назад
Родитель
Сommit
adfb9fafaa
1 измененных файлов с 1 добавлено и 0 удалено
  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
 		{