From: Barbara Kaczorowska Date: Mon, 21 Sep 2020 10:26:59 +0000 (+0000) Subject: Little fix X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e26eb096a48532b2ee8909a6523cbe631c5076ca;p=thirdparty%2Fcollectd.git Little fix --- diff --git a/src/utils/common/common.c b/src/utils/common/common.c index cba23fdb5..010b1fed5 100644 --- a/src/utils/common/common.c +++ b/src/utils/common/common.c @@ -884,10 +884,11 @@ int format_name(char *ret, int ret_len, const char *hostname, assert(plugin != NULL); assert(type != NULL); - if (hostname != NULL) + if (hostname != NULL) { APPEND(hostname); - - APPEND("/"); + APPEND("/"); + } + APPEND(plugin); if ((plugin_instance != NULL) && (plugin_instance[0] != 0)) { APPEND("-");