Fix problems detected as dead assignment warning by clang scan-build.

Wrong assignment by shutdown result hides the real error code
of NewRequestHandler() in ssdp_device.c.
Fix return code description of NewRequestHandler().
Handle return code from ithread_create in sample applications.
Remove unused assignments.
This commit is contained in:
Yoichi NAKAYAMA
2012-04-21 11:38:20 +09:00
parent 3d7c1dbd59
commit 39dfad2cba
11 changed files with 24 additions and 12 deletions

View File

@@ -1206,7 +1206,6 @@ static int ReadResponseLineAndHeaders(
return num_read;
}
}
done = 0;
status = parser_parse_headers(parser);
if ((status == (parse_status_t)PARSE_OK) &&
(parser->position == (parser_pos_t)POS_ENTITY))