mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Fixed scan-build issues.
This commit is contained in:
parent
a4f0bdf737
commit
5ad3103626
5
source.c
5
source.c
@ -58,6 +58,7 @@ bool cIptvTransponderParameters::Parse(const char *strP)
|
|||||||
if (strP && *strP) {
|
if (strP && *strP) {
|
||||||
const char *delim = "|";
|
const char *delim = "|";
|
||||||
char *str = strdup(strP);
|
char *str = strdup(strP);
|
||||||
|
char *p = str;
|
||||||
char *saveptr = NULL;
|
char *saveptr = NULL;
|
||||||
char *token = NULL;
|
char *token = NULL;
|
||||||
bool found_s = false;
|
bool found_s = false;
|
||||||
@ -120,9 +121,9 @@ bool cIptvTransponderParameters::Parse(const char *strP)
|
|||||||
if (found_s && found_p && found_f && found_u && found_a)
|
if (found_s && found_p && found_f && found_u && found_a)
|
||||||
result = true;
|
result = true;
|
||||||
else
|
else
|
||||||
error("Invalid channel parameters: %s", str);
|
error("Invalid channel parameters: %s", p);
|
||||||
|
|
||||||
free(str);
|
free(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (result);
|
return (result);
|
||||||
|
Loading…
Reference in New Issue
Block a user