Fixed const to non-const assignment.
@@ -147,7 +147,7 @@ pubsub_tcp_topic_receiver_t *pubsub_tcpTopicReceiver_create(celix_bundle_context
receiver->logHelper = logHelper;
receiver->serializerSvcId = serializerSvcId;
receiver->serializer = serializer;
- receiver->scope = scope == NULL ? scope : strndup(scope, 1024 * 1024);
+ receiver->scope = scope == NULL ? NULL : strndup(scope, 1024 * 1024);
receiver->topic = strndup(topic, 1024 * 1024);
long sessions = celix_bundleContext_getPropertyAsLong(ctx, PSA_TCP_MAX_RECV_SESSIONS, PSA_TCP_DEFAULT_MAX_RECV_SESSIONS);
