fix warning

This commit is contained in:
Thomas Bernard 2020-09-24 10:38:05 +02:00
parent 2db013d891
commit 426f9a1835
1 changed files with 2 additions and 5 deletions

View File

@ -873,11 +873,8 @@ ssdpDiscoverDevices(const char * const deviceTypes[],
* if searchalltypes is set, enter the loop only * if searchalltypes is set, enter the loop only
* when the last deviceType is reached */ * when the last deviceType is reached */
if((sentok && !searchalltypes) || !deviceTypes[deviceIndex + 1]) { if((sentok && !searchalltypes) || !deviceTypes[deviceIndex + 1]) {
struct timeval start, current; struct timeval start = {0, 0}, current = {0, 0};
if (upnp_gettimeofday(&start) < 0) { upnp_gettimeofday(&start);
start.tv_sec = 0;
start.tv_usec = 0;
}
do { do {
n = receivedata(sudp, bufr, sizeof(bufr), delay, &scope_id); n = receivedata(sudp, bufr, sizeof(bufr), delay, &scope_id);
if (n < 0) { if (n < 0) {