celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From griccia...@apache.org
Subject [08/11] celix git commit: Fixed uninitialized variables warning
Date Fri, 29 Sep 2017 13:34:24 GMT
Fixed uninitialized variables warning


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

Branch: refs/heads/develop
Commit: d5ff9463a6f457a7b92f0fa4ca9c15dd69fe9cf5
Parents: e0d33e5
Author: gricciardi <gricciardi@apache.org>
Authored: Fri Sep 29 14:34:28 2017 +0200
Committer: gricciardi <gricciardi@apache.org>
Committed: Fri Sep 29 14:34:28 2017 +0200

----------------------------------------------------------------------
 pubsub/pubsub_admin_udp_mc/private/src/pubsub_admin_impl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/d5ff9463/pubsub/pubsub_admin_udp_mc/private/src/pubsub_admin_impl.c
----------------------------------------------------------------------
diff --git a/pubsub/pubsub_admin_udp_mc/private/src/pubsub_admin_impl.c b/pubsub/pubsub_admin_udp_mc/private/src/pubsub_admin_impl.c
index 6f9427b..8268287 100644
--- a/pubsub/pubsub_admin_udp_mc/private/src/pubsub_admin_impl.c
+++ b/pubsub/pubsub_admin_udp_mc/private/src/pubsub_admin_impl.c
@@ -116,7 +116,7 @@ celix_status_t pubsubAdmin_create(bundle_context_pt context, pubsub_admin_pt
*ad
 		if (mc_ip == NULL) {
 			const char *mc_prefix = NULL;
 			const char *interface = NULL;
-			int b0, b1, b2, b3;
+			int b0 = 0, b1 = 0, b2 = 0, b3 = 0;
 			bundleContext_getProperty(context,PSA_MULTICAST_IP_PREFIX , &mc_prefix);
 			if(mc_prefix == NULL) {
 				mc_prefix = DEFAULT_MC_PREFIX;


Mime
View raw message