You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by bp...@apache.org on 2015/10/22 15:04:21 UTC

celix git commit: CELIX-237: add missing strdup

Repository: celix
Updated Branches:
  refs/heads/develop d2c53ed93 -> 78bb1e3fe


CELIX-237: add missing strdup


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

Branch: refs/heads/develop
Commit: 78bb1e3fe71f3d8c80fc0b7b33df6505bd2d6fb1
Parents: d2c53ed
Author: Bjoern Petri <bp...@apache.org>
Authored: Thu Oct 22 15:03:55 2015 +0200
Committer: Bjoern Petri <bp...@apache.org>
Committed: Thu Oct 22 15:03:55 2015 +0200

----------------------------------------------------------------------
 .../rsa/private/src/remote_service_admin_dfi.c                   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/78bb1e3f/remote_services/remote_service_admin_dfi/rsa/private/src/remote_service_admin_dfi.c
----------------------------------------------------------------------
diff --git a/remote_services/remote_service_admin_dfi/rsa/private/src/remote_service_admin_dfi.c b/remote_services/remote_service_admin_dfi/rsa/private/src/remote_service_admin_dfi.c
index a66bd27..066c3da 100644
--- a/remote_services/remote_service_admin_dfi/rsa/private/src/remote_service_admin_dfi.c
+++ b/remote_services/remote_service_admin_dfi/rsa/private/src/remote_service_admin_dfi.c
@@ -169,7 +169,7 @@ celix_status_t remoteServiceAdmin_create(bundle_context_pt context, remote_servi
         }
         else {
             logHelper_log((*admin)->loghelper, OSGI_LOGSERVICE_WARNING, "RSA: No IP address for service annunciation set. Using %s", DEFAULT_IP);
-            (*admin)->ip = (char*) DEFAULT_IP;
+            (*admin)->ip = strdup((char*) DEFAULT_IP);
         }
 
         if (detectedIp != NULL) {
@@ -734,4 +734,4 @@ static void remoteServiceAdmin_log(remote_service_admin_pt admin, int level, con
     char buf2[256];
     vsnprintf(buf2, 256, msg, ap);
     logHelper_log(admin->loghelper, levels[level], "%s%s", buf1, buf2);
-}
\ No newline at end of file
+}