From 53c28dca167a3f235900417227ed07d45c8fc578 Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Mon, 14 Mar 2016 16:29:24 -0700 Subject: [PATCH] fixes gcc optimisation causing RealmCoordinator to use a empty/default path fix indentation --- src/shared_realm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared_realm.cpp b/src/shared_realm.cpp index ec62ec8d..bc8495c7 100644 --- a/src/shared_realm.cpp +++ b/src/shared_realm.cpp @@ -184,7 +184,8 @@ Group *Realm::read_group() SharedRealm Realm::get_shared_realm(Config config) { - return RealmCoordinator::get_coordinator(config.path)->get_realm(std::move(config)); + auto coordinator = RealmCoordinator::get_coordinator(config.path); + return coordinator->get_realm(std::move(config)); } void Realm::update_schema(std::unique_ptr schema, uint64_t version)