summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/repl_set_commands.cpp')
-rw-r--r--src/mongo/db/repl/repl_set_commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp
index a38d510fd5a..c7b3c3ec3d2 100644
--- a/src/mongo/db/repl/repl_set_commands.cpp
+++ b/src/mongo/db/repl/repl_set_commands.cpp
@@ -248,14 +248,14 @@ void parseReplSetSeedList(ReplicationCoordinatorExternalState* externalState,
*setname = p;
}
- if (slash == 0) {
+ if (slash == nullptr) {
return;
}
p = slash + 1;
while (1) {
const char* comma = strchr(p, ',');
- if (comma == 0) {
+ if (comma == nullptr) {
comma = strchr(p, 0);
}
if (p == comma) {