We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211c0e3 commit 0d74f62Copy full SHA for 0d74f62
subsys/logging/backends/log_backend_net.c
@@ -314,7 +314,8 @@ static void init_net(struct log_backend const *const backend)
314
{
315
ARG_UNUSED(backend);
316
317
- if (strlen(CONFIG_LOG_BACKEND_NET_SERVER) != 0) {
+ if (sizeof(CONFIG_LOG_BACKEND_NET_SERVER) != 1) {
318
+ /* Non empty address, set server via Kconfig defaults */
319
const char *server = CONFIG_LOG_BACKEND_NET_SERVER;
320
bool ret;
321
0 commit comments