mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
fix clang build
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user