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) {
|
||||
const char *delim = "|";
|
||||
char *str = strdup(strP);
|
||||
char *p = str;
|
||||
char *saveptr = NULL;
|
||||
char *token = NULL;
|
||||
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)
|
||||
result = true;
|
||||
else
|
||||
error("Invalid channel parameters: %s", str);
|
||||
error("Invalid channel parameters: %s", p);
|
||||
|
||||
free(str);
|
||||
free(p);
|
||||
}
|
||||
|
||||
return (result);
|
||||
|
Loading…
Reference in New Issue
Block a user