aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/sdl_net
diff options
context:
space:
mode:
authorD G Turner2017-01-16 13:09:58 +0000
committerD G Turner2017-01-16 13:09:58 +0000
commitc0a40e2e88313a8954866add92ec9efdc1531298 (patch)
tree1a56da775d67847b8f31f345e3eaea9adc34189c /backends/networking/sdl_net
parentaac2f7518d378b6a756235c80eb950ab2502232f (diff)
downloadscummvm-rg350-c0a40e2e88313a8954866add92ec9efdc1531298.tar.gz
scummvm-rg350-c0a40e2e88313a8954866add92ec9efdc1531298.tar.bz2
scummvm-rg350-c0a40e2e88313a8954866add92ec9efdc1531298.zip
CLOUD: Fix Further Variable Shadowing Compiler Warnings.
Diffstat (limited to 'backends/networking/sdl_net')
-rw-r--r--backends/networking/sdl_net/reader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/networking/sdl_net/reader.cpp b/backends/networking/sdl_net/reader.cpp
index 113d928467..27254dee4f 100644
--- a/backends/networking/sdl_net/reader.cpp
+++ b/backends/networking/sdl_net/reader.cpp
@@ -178,7 +178,7 @@ void Reader::parseFirstLine(const Common::String &headersToParse) {
const char *position = strstr(cstr, "\r\n");
if (position) { //we have at least one line - and we want the first one
//"<METHOD> <path> HTTP/<VERSION>\r\n"
- Common::String methodParsed, path, http, buf;
+ Common::String methodParsed, pathParsed, http, buf;
uint32 length = position - cstr;
if (headersSize > length)
headersSize = length;
@@ -188,8 +188,8 @@ void Reader::parseFirstLine(const Common::String &headersToParse) {
if (headersToParse[i] == ' ' || i == headersSize - 1) {
if (methodParsed == "") {
methodParsed = buf;
- } else if (path == "") {
- path = buf;
+ } else if (pathParsed == "") {
+ pathParsed = buf;
} else if (http == "") {
http = buf;
} else {
@@ -209,7 +209,7 @@ void Reader::parseFirstLine(const Common::String &headersToParse) {
bad = true;
_method = methodParsed;
- parsePathQueryAndAnchor(path);
+ parsePathQueryAndAnchor(pathParsed);
}
}