fix clang build

This commit is contained in:
Michael Jerris committed 2015-05-28 12:47:25 -05:00
1 parent c517be4330
commit 8d30c18c5a
3 files changed
+6 -6

No files matched your search

@@ -57,7 +57,7 @@ const char* _get_host_port(mongo_host_port* hp) {
MONGO_EXPORT const char* mongo_get_primary(mongo* conn) {
mongo* conn_ = (mongo*)conn;
if( !(conn_->connected) || (conn_->primary->host == '\0') )
if( !(conn_->connected) || (*conn_->primary->host == '\0') )
return NULL;
return _get_host_port(conn_->primary);
}