celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject [47/50] celix git commit: CELIX-237: added missing initialization
Date Thu, 29 Oct 2015 15:29:38 GMT
CELIX-237: added missing initialization


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/48342833
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/48342833
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/48342833

Branch: refs/heads/feature/CELIX-269_depman
Commit: 48342833ae1d29094c4f28006e0bef2210338c53
Parents: d7246c4
Author: Bjoern Petri <bpetri@apache.org>
Authored: Thu Oct 29 09:00:49 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Thu Oct 29 09:00:49 2015 +0100

----------------------------------------------------------------------
 .../dynamic_function_interface/json_rpc.c                        | 2 +-
 .../dynamic_function_interface_tst/dyn_function_tests.cpp        | 4 ++--
 .../remote_service_admin_dfi/rsa_tst/bundle/tst_activator.c      | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/48342833/remote_services/remote_service_admin_dfi/dynamic_function_interface/json_rpc.c
----------------------------------------------------------------------
diff --git a/remote_services/remote_service_admin_dfi/dynamic_function_interface/json_rpc.c
b/remote_services/remote_service_admin_dfi/dynamic_function_interface/json_rpc.c
index 14967a5..52487fc 100644
--- a/remote_services/remote_service_admin_dfi/dynamic_function_interface/json_rpc.c
+++ b/remote_services/remote_service_admin_dfi/dynamic_function_interface/json_rpc.c
@@ -114,7 +114,7 @@ int jsonRpc_call(dyn_interface_type *intf, void *service, const char *request,
c
         status = ERROR;
     }
 
-    ffi_sarg returnVal;
+    ffi_sarg returnVal = 1;
 
     if (status == OK) {
         dynFunction_call(func, fp, (void *) &returnVal, args);

http://git-wip-us.apache.org/repos/asf/celix/blob/48342833/remote_services/remote_service_admin_dfi/dynamic_function_interface_tst/dyn_function_tests.cpp
----------------------------------------------------------------------
diff --git a/remote_services/remote_service_admin_dfi/dynamic_function_interface_tst/dyn_function_tests.cpp
b/remote_services/remote_service_admin_dfi/dynamic_function_interface_tst/dyn_function_tests.cpp
index d1bc82e..397540c 100644
--- a/remote_services/remote_service_admin_dfi/dynamic_function_interface_tst/dyn_function_tests.cpp
+++ b/remote_services/remote_service_admin_dfi/dynamic_function_interface_tst/dyn_function_tests.cpp
@@ -146,7 +146,7 @@ extern "C" {
         args[0] = &ptr;
         args[1] = &a;
         args[2] = &input;
-        int rVal;
+        int rVal = 0;
         rc = dynFunction_call(dynFunc, fp, &rVal, args);
         CHECK_EQUAL(0, rc);
         CHECK_EQUAL(4.0, result);
@@ -158,7 +158,7 @@ extern "C" {
         args[0] = &ptr;
         args[1] = &a;
         args[2] = &inMemResult;
-        rVal;
+        rVal = 0;
         rc = dynFunction_call(dynFunc, fp, &rVal, args);
         CHECK_EQUAL(0, rc);
         CHECK_EQUAL(4.0, result);

http://git-wip-us.apache.org/repos/asf/celix/blob/48342833/remote_services/remote_service_admin_dfi/rsa_tst/bundle/tst_activator.c
----------------------------------------------------------------------
diff --git a/remote_services/remote_service_admin_dfi/rsa_tst/bundle/tst_activator.c b/remote_services/remote_service_admin_dfi/rsa_tst/bundle/tst_activator.c
index c067abf..6fb7682 100644
--- a/remote_services/remote_service_admin_dfi/rsa_tst/bundle/tst_activator.c
+++ b/remote_services/remote_service_admin_dfi/rsa_tst/bundle/tst_activator.c
@@ -122,7 +122,7 @@ static int test(void *handle) {
 
 	double result = -1.0;
 
-    int rc;
+    int rc = 1;
     if (act->calc != NULL) {
          rc = act->calc->sqrt(act->calc->calculator, 4, &result);
         printf("calc result is %f\n", result);


Mime
View raw message