From 5ad31036265f73ec19fcc5638bb2a741741761fb Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Thu, 2 Jan 2014 21:47:43 +0200 Subject: [PATCH] Fixed scan-build issues. --- source.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source.c b/source.c index cf078e2..3c4a31e 100644 --- a/source.c +++ b/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);