summaryrefslogtreecommitdiff
path: root/plugins/connman/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/connman/service.cpp')
-rw-r--r--plugins/connman/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/connman/service.cpp b/plugins/connman/service.cpp
index 757e1d7..463b191 100644
--- a/plugins/connman/service.cpp
+++ b/plugins/connman/service.cpp
@@ -71,7 +71,7 @@ ivi::settings::service::call_method(char const * name,
nullptr, // Not cancellable
&error));
- unique_ptr<GError> safe_error;
+ unique_ptr<GError> safe_error(error);
if (ret != nullptr) {
// Nothing to add to successful response.