You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/03/17 10:56:39 UTC

[celix] branch develop updated: Adds missing var initialization

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4ed8ed2  Adds missing var initialization
4ed8ed2 is described below

commit 4ed8ed25a772b8297fab560a7b7619d20ca3ce68
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Tue Mar 17 11:56:10 2020 +0100

    Adds missing var initialization
---
 libs/framework/src/framework.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/framework/src/framework.c b/libs/framework/src/framework.c
index d7f8960..06112bf 100644
--- a/libs/framework/src/framework.c
+++ b/libs/framework/src/framework.c
@@ -2160,7 +2160,7 @@ static celix_status_t framework_loadLibraries(framework_pt framework, const char
         char lib[128];
         lib[127] = '\0';
 
-        char *path;
+        char *path = NULL;
         char *pathToken = strtok_r(token, ";", &path);
         strncpy(lib, pathToken, 127);
         pathToken = strtok_r(NULL, ";", &path);
@@ -2460,4 +2460,4 @@ bool celix_framework_startBundle(celix_framework_t *fw, long bndId) {
         fw_bundleEntry_decreaseUseCount(entry);
     }
     return started;
-}
\ No newline at end of file
+}