summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgilles <gilles@peerpong.com>2010-09-22 10:58:57 -0700
committerMathias Stearn <redbeard0531@gmail.com>2010-09-27 18:23:33 -0400
commitaab1fcff76c2374692f8c56bfefea3e6203a6eb4 (patch)
treeca59a044b5a623bc423b975a530d88f40b9057d6
parent1cefd8cc5dbd9901b9de21c3e07dcefdca172d3e (diff)
downloadmongo-aab1fcff76c2374692f8c56bfefea3e6203a6eb4.tar.gz
Don't need to copy bind_ip SERVER-1813
-rw-r--r--util/hostandport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/hostandport.h b/util/hostandport.h
index a0a7196855f..dbae86aa53d 100644
--- a/util/hostandport.h
+++ b/util/hostandport.h
@@ -43,7 +43,7 @@ namespace mongo {
}
static HostAndPort me() {
- const char* ips = string(cmdLine.bind_ip).c_str();
+ const char* ips = cmdLine.bind_ip.c_str();
while(*ips){
string ip;
const char * comma = strchr(ips, ',');