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.

(forward ported from commit 39dfad2cba)
This commit is contained in:
Yoichi NAKAYAMA
2012-04-21 11:38:20 +09:00
committed by Marcelo Roberto Jimenez
parent 76e8812acc
commit c27a089d6f
10 changed files with 24 additions and 10 deletions

View File

@@ -53,6 +53,9 @@ int main(int argc, char *argv[])
/* start a command loop thread */
code = ithread_create(&cmdloop_thread, NULL, TvDeviceCommandLoop, NULL);
if (code != 0) {
return UPNP_E_INTERNAL_ERROR;
}
#ifdef WIN32
ithread_join(cmdloop_thread, NULL);
#else