You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2020/05/20 05:22:11 UTC
[celix] 01/01: Fixed uninitialized var.
This is an automated email from the ASF dual-hosted git repository.
abroekhuis pushed a commit to branch feature/uninitialized_var
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 82b2ce6082172a4be87b965f9ef83b503991962a
Author: Alexander Broekhuis <al...@luminis.eu>
AuthorDate: Wed May 20 07:21:41 2020 +0200
Fixed uninitialized var.
---
libs/framework/src/framework.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/framework/src/framework.c b/libs/framework/src/framework.c
index 9ad3c8e..8b46398 100644
--- a/libs/framework/src/framework.c
+++ b/libs/framework/src/framework.c
@@ -1573,7 +1573,7 @@ celix_status_t fw_addBundleListener(framework_pt framework, bundle_pt bundle, bu
celix_status_t fw_removeBundleListener(framework_pt framework, bundle_pt bundle, bundle_listener_pt listener) {
celix_status_t status = CELIX_SUCCESS;
- fw_bundle_listener_pt bundleListener;
+ fw_bundle_listener_pt bundleListener = NULL;
celixThreadMutex_lock(&framework->bundleListenerLock);
for (int i = 0; i < arrayList_size(framework->bundleListeners); i++) {