Initialize variable before first use

This commit is contained in:
Dmitry Govorov 2017-08-03 22:49:05 +03:00
parent 9292f63c37
commit a515ffbdf8

View file

@ -1938,6 +1938,7 @@ void qfnk_task(void)
WEB_SRV_QFNK qfn; WEB_SRV_QFNK qfn;
WEB_SRV_QFNK qfnt; WEB_SRV_QFNK qfnt;
TickType_t timetick; TickType_t timetick;
qfnt.fnc = NULL;
while(1) { while(1) {
if(xQueueReceive(xQueueWebSrv, &qfn, 5) == pdPASS) { // portMAX_DELAY if(xQueueReceive(xQueueWebSrv, &qfn, 5) == pdPASS) { // portMAX_DELAY
if(qfn.fnc) { if(qfn.fnc) {