summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-12 21:27:42 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-12 21:27:42 (GMT)
commit35b7f62d3b8dfac0475b691bf8422a25523345fd (patch)
tree9ed68d0935014c5e5d3d417bb044934a4b6c0276 /src/client/Client.cpp
parentaae7113c818e971d1a7a56cd9f9d01005e457b34 (diff)
downloadpowder-35b7f62d3b8dfac0475b691bf8422a25523345fd.zip
powder-35b7f62d3b8dfac0475b691bf8422a25523345fd.tar.gz
Remove unnecessary string duplication (http_init creates an internal copy of the proxy string)
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 78a7e2e..cf1a5db 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -121,12 +121,7 @@ void Client::Initialise(std::string proxyString)
}
if(proxyString.length())
- {
- char *proxy = new char[proxyString.length() + 1];
- std::strcpy (proxy, proxyString.c_str());
- http_init(proxy);
- delete[] proxy;
- }
+ http_init(proxyString.c_str());
else
http_init(NULL);