mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Silenced a warning in the HTTP protocol.
This commit is contained in:
parent
7a8b2962b2
commit
9145fb8bb8
@ -128,7 +128,7 @@ bool cIptvProtocolHttp::ProcessHeaders(void)
|
||||
{
|
||||
debug("cIptvProtocolHttp::ProcessHeaders()\n");
|
||||
unsigned int lineLength = 0;
|
||||
int response = 0;
|
||||
int version = 0, response = 0;
|
||||
bool responseFound = false;
|
||||
char buf[4096];
|
||||
|
||||
@ -136,7 +136,7 @@ bool cIptvProtocolHttp::ProcessHeaders(void)
|
||||
memset(buf, '\0', sizeof(buf));
|
||||
if (!GetHeaderLine(buf, sizeof(buf), lineLength))
|
||||
return false;
|
||||
if (!responseFound && sscanf(buf, "HTTP/1.%*i %i ", &response) != 1) {
|
||||
if (!responseFound && sscanf(buf, "HTTP/1.%1i %3i ", &version, &response) != 1) {
|
||||
error("Expected HTTP header not found\n");
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user