diff options
author | gilles <gilles@peerpong.com> | 2010-09-22 10:58:57 -0700 |
---|---|---|
committer | Mathias Stearn <redbeard0531@gmail.com> | 2010-09-27 18:23:33 -0400 |
commit | aab1fcff76c2374692f8c56bfefea3e6203a6eb4 (patch) | |
tree | ca59a044b5a623bc423b975a530d88f40b9057d6 | |
parent | 1cefd8cc5dbd9901b9de21c3e07dcefdca172d3e (diff) | |
download | mongo-aab1fcff76c2374692f8c56bfefea3e6203a6eb4.tar.gz |
Don't need to copy bind_ip SERVER-1813
-rw-r--r-- | util/hostandport.h | 2 |
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, ','); |