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/feature/CELIX-230_Refactoring_of_the_shell_command_service Commit: 78bb1e3fe71f3d8c80fc0b7b33df6505bd2d6fb1 Parents: d2c53ed Author: Bjoern Petri <bpe...@apache.org> Authored: Thu Oct 22 15:03:55 2015 +0200 Committer: Bjoern Petri <bpe...@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 +}