From e74d4f88f4dbc2265500fb5d9a7c70a3dede0643 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Fri, 20 Mar 2009 23:38:26 +0200 Subject: [PATCH] Fixed again lint warnings. --- protocolext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocolext.c b/protocolext.c index 29239f4..33dd1b8 100644 --- a/protocolext.c +++ b/protocolext.c @@ -106,7 +106,7 @@ bool cIptvProtocolExt::Open(void) { debug("cIptvProtocolExt::Open()\n"); // Reject empty script files - if (!strlen(scriptFile)) + if (!strlen(*scriptFile)) return false; // Create the listening socket OpenSocket(socketPort); @@ -139,7 +139,7 @@ bool cIptvProtocolExt::Set(const char* Location, const int Parameter, const int struct stat stbuf; // Update script file and parameter scriptFile = cString::sprintf("%s/%s", IptvConfig.GetConfigDirectory(), Location); - if ((stat(scriptFile, &stbuf) != 0) || (strstr(scriptFile, "..") != 0)) { + if ((stat(*scriptFile, &stbuf) != 0) || (strstr(*scriptFile, "..") != 0)) { error("ERROR: Non-existent or relative path script '%s'", *scriptFile); return false; }