X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fperl.c;fp=src%2Fperl.c;h=e922badf9f924e6d4ff8e514252fa97bde2153d9;hb=6026e3162e522b133d10596710527d24c2921b55;hp=5f652e64193ad7c4ed6adf7842a5aa3f12ac5e63;hpb=b7ff429c9f1440bac83eaa26c75945742ea70c0b;p=collectd.git diff --git a/src/perl.c b/src/perl.c index 5f652e64..e922badf 100644 --- a/src/perl.c +++ b/src/perl.c @@ -885,8 +885,8 @@ static char *get_module_name(char *buf, size_t buf_len, const char *module) { else status = ssnprintf(buf, buf_len, "%s::%s", base_name, module); if ((status < 0) || ((unsigned int)status >= buf_len)) - return (NULL); - return (buf); + return NULL; + return buf; } /* char *get_module_name */ /* @@ -2497,7 +2497,7 @@ static int perl_config_loadplugin(pTHX_ oconfig_item_t *ci) { if (NULL == get_module_name(module_name, sizeof(module_name), value)) { log_err("Invalid module name %s", value); - return (1); + return 1; } if (0 != init_pi(perl_argc, perl_argv))