X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fintel_rdt.c;h=62848dbfe5e24046fae4a4f3ae76606720fb47b6;hp=515a601e480294dd5651d93ec8ce08c8dd239a61;hb=0bbf058d6f9935e6e727cda7db79312281e2f58d;hpb=051a9ad7ca3be1238b38c6aacdcd280606d945ce diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 515a601e..62848dbf 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -325,8 +325,12 @@ static int strlisttoarray(char *str_list, char ***names, size_t *names_num) { continue; if ((isdupstr((const char **)*names, *names_num, token))) { - ERROR(RDT_PLUGIN ": Duplicated process name \'%s\' in group \'%s\'", - token, str_list); + if (str_list != NULL) + ERROR(RDT_PLUGIN ": Duplicated process name \'%s\' in group \'%s\'", + token, str_list); + else + ERROR(RDT_PLUGIN ": Duplicated process name \'%s\'", token); + return -EINVAL; } else { if (0 != strarray_add(names, names_num, token)) {