rottenbytes/collectd — comment on commit 69e0e4a44308ef271e2ac73452f632c274646fd9
File: src/memcached.c line 134
By octo:

As far as I can see, `st->port` is `NULL` when no *Port* configuration option is given by the user. This will lead to a segfault in *strlen(3)*. Please either change to `if (port == NULL)` or `if ((port == NULL) || (strlen (port) == 0))`. If you chose the latter, be consistent and do the same with *host* above.